[R] Dealing with NAs
Ville Iiskola
ville.iiskola at uta.fi
Sun Dec 18 15:06:41 CET 2011
Hi
I am trying to estimate parameter values with mlogit. I attach a part of my data.
My code is
x=mlogit.data(y,choice="voittaja",shape="long",id.var="id",alt.var="numero")
summary(mlogit(voittaja ~ Ie-1 , data=x, na.action=na.pass))
But i get
Error in if (abs(x - oldx) < ftol) { :
missing value where TRUE/FALSE needed
Because there is Na in D2.
What should i do to make it work?
More information about the R-help
mailing list