mlogit2logit(f, data, choices = NULL, base.choice = 1,
varying = NULL, sep = ".")mnl.spec.data is reduced to containchoices.data that are alternative-specific.data (see vignette for details), i.e. columns that correspond to alternative specific constants.data columns that involve $Z$, which is either $Z$ itself or an interaction between a variable and $Z$, (see vignette). The value of such element is a vector with the components choices that corresponds to the main intercept of the binary logistic model.vignette('conversion').Yeung, K.Y., Bumgarner, R.E., Raftery, A.E. (2005) Bayesian model averaging: development of an improved multi-class, gene selection and classification tool for microarray data. Bioinformatics 21 (10), 2394--2402.
mnl.specdata(heating)
bin.data <- mlogit2logit(depvar ~ ic + oc, heating, choices=1:5,
varying=3:12, sep='')
bin.glm <- glm(bin.data$formula, 'binomial', data=bin.data$data)
summary(bin.glm)Run the code above in your browser using DataLab