Re: [R] mlogit.data

2011-03-01 Thread gmacfarlane
http://r.789695.n4.nabble.com/file/n3329821/workdata.csv workdata.csv The code I posted is exactly what I am running. What you need is this data. Here is the code again. hbwmode-mlogit.data(worktrips.csv, shape=long, choice=CHOSEN, alt.var=ALTNUM) hbwmode-mlogit.data(hbwtrips, shape=long,

Re: [R] mlogit error

2011-02-28 Thread gmacfarlane
I actually have exactly the same question as Maha, and I wish that Z had answered the question instead of providing a lesson in streamlined code (valuable, but not helpful). It seems as though mlogit.data repopulates the row.names field, and that this is where the duplication comes in.