Hi
Please, I get this error message “Error in data[theorder, ] : incorrect number of dimensions” when I run the mlogit model presented below. Best regards, Eric library(mlogit) library(idefix) idefix.data *<- *aggregate_design idefix.data des *<- *as.matrix(idefix.data[, 3*:*8], ncol = 6) des y *<- *idefix.data[, 9] y mlogit.data *<- *Datatrans(pkg = "mlogit", des = des, y = y, n.alts = 2, n.sets = 8, n.resp = 7, bin = TRUE) gh3aP <- mlogit(y ~ -1 + par.1 +par.2 +par.3 +par.4+ par.5 +par.6, data = des) [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.