Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda, : x has missing values; consider using makeX() to impute them

There is an error in running LASSO code using glmnet package. Please help to see how to solve it. Thank you.

You have missing values. You have to remove them or use imputation.

I re-run one side of the code, and the following error appears. Please take a look at it for me, thank you.

You should read the glmnet documentation given at the following link:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.