# mlogit

#### Rose3

##### New Member
Hi there,

I am trying to apply mlogit for a panel data set. I have 22 individuals (countries), for a 228 points in time domain, and 8 variables. I set my data in Excel in long format (I think!). I am trying to write a command to prepare data for mlogit by applying the following code.

mdat<- mlogit.data (dat ,choice = "y", id="id", shape = "long", alt.var = "y")
But I get the error below;

Error in row.names<-.data.frame(*tmp*, value = c("1.0", "1.0", "1.0", : duplicate 'row.names' are not allowed