Re: [R] Error computing mlogit model

2020-08-26 Thread Jim Lemon
Hi Eric, There are a few mysteries in your request. As we don't know what "des" is, it is difficult to see why it does not have the correct number of dimensions. It looks like it should be an n x 6 matrix, but is that what it really is and does the mlogit function expect such a matrix? JIm On Wed

[R] Error computing mlogit model

2020-08-26 Thread Nyarko Eric
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], nco