Computes predicted probabilities for the categorical outcome based on a mlogit object.
Can return probabilities for all categories or only for the observed response.
# S3 method for mlogit
predict(
object,
newdata,
se = TRUE,
response = TRUE,
Y = NULL,
level = 0.95,
...
)A matrix or data frame containing:
Predicted probabilities.
Standard errors (if se=TRUE).
Confidence intervals (if se=TRUE).
If response=FALSE, columns correspond to the levels of the outcome factor.
Object of class "mlogit".
Data frame for prediction. If missing, predictions are made for the original data.
Logical; if TRUE, computes standard errors and confidence intervals.
Logical; if TRUE (default), returns probabilities only for the observed response
(if newdata contains the response). If FALSE, returns probabilities for all categories.
Vector of outcome levels to predict probabilities for (optional).
Confidence level for intervals (default 0.95).
Additional arguments.
Thomas Scheike
mlogit