[R] set the bahavior that R deal with missing values?

Dieter Menne dieter.menne at menne-biomed.de
Fri Jul 14 09:50:10 CEST 2006


zhijie zhang <epistat <at> gmail.com> writes:

>  The default behavior in R when performing a regression model with missing
> values is to exclude any case that contains a
> missing value? How could i set the bahavior that R deal with missing values?

Difficult to say, since there is no such thing as a regression model in R, but
certainly more than a few dozens in several packages. Best show a self-contained
runnably sample where you would prefer some na.action (see, for example,
parameter na.action in lm).

Dieter



More information about the R-help mailing list