Skip to main content
2 votes

Double selection lasso in and NA's handling

One sort of a weak trick is to replace the missing values with some semi-reasonable number (you can use the mean), and code another variable missing_x = is.na(x) ...
StasK's user avatar
  • 31.7k

Only top scored, non community-wiki answers of a minimum length are eligible