Message-ID: <4EEF0A7E.7000004@nic.fi>
Date: 2011-12-19T09:57:18Z
From: K. Elo
Subject: Mlogit missing value problem
In-Reply-To: <CA03A1B22BB649A78571EBE14AE53040@VillejaMariaPC>
Hi,
19.12.2011 11:12, Ville Iiskola wrote:
>
> Error in if (abs(x - oldx)< ftol) { : missing value where TRUE/FALSE
> needed
>
> The reason for this error is in the row 563. There the choice has
> value 1 and Ie has missing value. If the choice has value 0 and Ie
> has missing values, then there is no errors.
>
> What should i do to make it work..?
How about excluding all rows having the combination "choice=1" and
"Ie=NA" by using the function 'subset'? Or would this destroy/skew your
data?
HTH,
Kimmo