Re: [R] mlogit.data

2011-06-02 Thread 2guard
On the same token, is it possible to run a mlogit on a data set that has differing numbers of "alt.vars"? would this dataset be valid with the addition of the below bolded record? 1 1 air no 695910070 351 2 1 train no 343137271

Re: [R] mlogit.data

2011-03-01 Thread Mark Difford
My previous posting seems to have got mangled. This reposts it. On Mar 01, 2011; 03:32pm gmacfarlane wrote: >> 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="CHOS

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, sh

Re: [R] mlogit.data

2011-02-28 Thread Mark Difford
On Feb 28, 2011; 10:33pm Gregory Macfarlane wrote: >> It seems as though the mlogit.data command tries to reassign my >> row.names, >> and doesn't do it right. Is this accurate? How do I move forward? Take the time to do as the posting guide asks you to do (and maybe consider the possibility tha

[R] mlogit.data

2011-02-28 Thread Gregory Macfarlane
I am trying to estimate multinomial logit models off of a .csv table in IDCASE IDALT format where I have ROWS HHID PERID CASE ALTNUM NUMALTS CHOSEN IVTT OVTT TVTT COST DIST WKZONE HMZONE RSPOPDEN RSEMPDEN WKPOPDEN 1 12 11 1 5 1 13.38 2.00 15.38 70.63 7.