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@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.

Reply via email to