Hi! I hope you will be able to help me. I'm modelling a Discrete Choice Experiment and I need to transform my dataset from a wide to a long format. In fact, I succeed by running :
C <- mlogit.data(Classeur1, shape="wide", choice= "choice", varying= 5:24, sep= "_", alt.levels=c("A", "B"), id= "id")
However, this morning, I tried to run my model again and I received an error message which is the following:
"Erreur : Assigned data
ids must be compatible with existing data.
x Existing data has 1560 rows.
x Assigned data has 780 rows.
i Only vectors of size 1 are recycled."
But, I don't understand why ! Do someone already had this error message and solved it ?
Thanks in Advance!