[R] mlogit function cut off formular

Han Qin qinhan2002 at gmail.com
Sun Feb 14 19:08:11 CET 2010


I'm trying to fit a multinominal logistic model using package mlogit. I have
15 independent variables. The code looks like this:
m<-mlogit(score~0|f1+f2+f3+f4+f5+f6+f7+f8+f9+f10+f11+f12+f13+f14+f15, data,
reflevel="1")

And it gives the following error message:
Error in parse(text = x) : 
  unexpected ')' in "score ~ 0 + alt:(f1 + f2 + f3 + f4 + f5 + f6 + f7 + f8
+ f9 + f10 + f11 + f12 + )"

Obviously, the mlogit function somehow cut off my formula, probably because
it is too long. Is this considered a bug or I'm doing something wrond?
Thanks
-- 
View this message in context: http://n4.nabble.com/mlogit-function-cut-off-formular-tp1555298p1555298.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list