[R] Dealing with NAs

Ville Iiskola ville.iiskola at uta.fi
Sun Dec 18 15:06:41 CET 2011


I am trying to estimate parameter values with mlogit. I attach a part of my data.

My code is


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