Hello,
I am trying to use mlogit package in R.
I have SP data with following columns
ID , choice, ALT, IVT, TC, AS
Each individual has 18 rows
choice is my dependent variable
and IVT, TC and AC are my dependent variables.
I am using the command mlogit.data(data, choice = "choice", id = "ID", varying = 2:7, sep= "")
But it's not running showing error like dfidx the two indexes don't define unique observation.
Or
Column name don't match
and many more.
If someone has experience with the mlogit package, kindly help.