[R] mlogit package, "Error in X[omitlines, ] <- NA : subscript out of bounds"

From: Yong Wang <wangyong1_at_gmail.com>
Date: Fri, 29 Apr 2011 14:29:08 -0400


I am using the mlogit packages and get a data problem, for which I can't find any clue from R archive.

code below shows my related code all the way to the error

#---------------------------------------------------------------------------
mydata <- data.frame(dependent,x,y,z)

mydata$dependent<-as.factor(mydata$dependent)

mldata<-mlogit.data(mydata, varying=NULL, choice="dependent", shape="wide")

summary(mlogit.1<- mlogit(dependent~1|x+y+z, data = mldata, reflevel="0"))

"Error in X[omitlines, ] <- NA : subscript out of bounds" ,
#---------------------------------------------------------------------------

Could anybody kindly tip how can I possibly solve this problem?

Thank you

yong



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 29 Apr 2011 - 18:32:06 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Apr 2011 - 18:40:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive