Skip to content
Prev 6550 / 20628 Next

NAs in fixed effects

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11-01-05 08:18 AM, Henrik Thurfjell wrote:
This is a can of worms -- I don't think there is a universally
accepted, simple solution.
  I would recommend that you start by finding a copy of Frank Harrell's
book on _Regression Modeling Strategies_ and read the chapter on
imputation.  As a very quick and dirty start, you might consider
replacing the NAs in your data with the means or medians of the other
values: there is an impute() function in the e1071 package that does
this (also see the mclust and Hmisc packages for more complex imputation
strategies).

  Ben Bolker
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5H1hIACgkQc5UpGjwzenOGjwCdF6njWcisYICdeyv61jbykc/a
yQgAnjGhSkvgM214tdtQK7+pjR9UKaJW
=71Ra
-----END PGP SIGNATURE-----