[R] SIMULATE choice experiments

2020-11-29 Thread Nyarko Eric
Dear all, Please, any assistance on how to SIMULATE choice experiments to obtain the multinomial logit choice probabilities as well as the model parameters for the design matrix F having 7 factors and 12 blocks of size 2. Thank you. F<- c(1,-1,1,-1,1,-1,1,-1,1,1,1,1,-1,-1,-1,-1,1,1,-1,-1,1,1,-1,

[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