"predict"(object, ...)
"predict"(object, newdata, type=c("outcome", "action"), na.action = na.pass, ...)
"predict"(object, newdata, type=c("outcome", "action"), na.action = na.pass, ...)
"predict"(object, newdata, type=c("outcome", "action"), na.action = na.pass, ...)
"predict"(object, newdata, na.action = na.pass, n.sim = 1000, ...)game.egame12) or for actions (e.g., whether 2 moves L or R given
that 1 moved R).NAs in newdataultimatum models (see Details).predProbs will
be more convenient.In the ultimatum model, there is not an analytic expression
for the expected value of Player 1's offer. Therefore, predicted values
are instead generating via simulation by drawing errors from a logistic
distribution. The number of draws per observation can be controlled via
the n.sim argument. For replicability, we recommend seeding the
random number generator via set.seed before using
predict.ultimatum.
predProbs provides a more full-featured and
user-friendly wrapper, including plots and confidence bands.