Hello,
Suppose I have a dataset containing input variables like this:
(Binary) (Interval) (Binary)
HaveAChild AgeOfChild ChildIsMarried
1 12 1
0 . .
0 . .
1 20 0
1 11 1
0 . .
In my predictive modelling, I would like to make use of models such as regression or neural networks, which require complete cases.
However, the AgeOfChild and ChildIsMarried variables are missing for observations where HaveAChild=0, which is expected since there is no child to begin with.
In this case, how can I handle these missing values without discarding them, considering that imputation wouldn't really make sense (e.g. not having a child but having a child age).
Thank you.
Then you should drop these HaveAChild=0, since these obs don't mean anything .
Then I think you should drop variable AgeOfChild ,since this variable is not valid for all obs .
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.