Skip to content
Prev 333818 / 398506 Next

Lasso function that can handle NA values

?na.omit

??

But it is certainly true that omitting missing values first and
analyzing the remaining data can:

1. Leave you with no data to analyze

2. Result in biased and misleading conclusions if the missingness
mechanism is related to the covariates.

In general, handling data with missing values properly can be a very
difficult  or even insoluble problem. You may wish to consult with a
local statistician knowledgeable in such matters (I am not, for
example).

Cheers,
Bert
On Fri, Nov 29, 2013 at 6:12 AM, Laura Buzdugan <laubuzdugan at gmail.com> wrote: