mlogit(formula, data, control = glm.control())
glm.control
for details.mlogit
. The class has slots:
coefficients (matrix), standard.err (matrix), fitted.values
(matrix), x (matrix), y (matrix), formula (formula), call (call),
df.null (numeric), df.residual (numeric), null.deviance (numeric),
deviance (numeric), iter (numeric), converged (logical).Methods implemented for the mlogit
class are
coefficients
, fitted.values
, residuals
and
which extract the relevant quantities, and summary
, which
gives the same output as with a glm
object.glm
, but the options are (as yet) more
limited. Missing values are not allowed in the data.The model is fitted without using a reference outcome category; the parameters are made identifiable by the requirement that the sum of corresponding regression coefficients over the outcome categories is zero.
glm
, multinom
. y <- factor(rep(1:4, 5))
x <- 1:20
fit <- mlogit(y ~ x)
summary(fit)
residuals(fit)
Run the code above in your browser using DataLab