How does classification learner handle missing data for logistic regression?
2 views (last 30 days)
Show older comments
I am curious on how missing data is handled in the classification learner for methods that do not have approaches for missing data (like logistic regression).
1 Comment
Ive J
on 14 Jul 2021
fitglm excludes samples with missing values (in either of predictors/response).
Answers (1)
Sahil Jain
on 11 Aug 2021
The documentation of generalized linear regression model (fitglm) mentions that rows with even a single missing value are removed from the fit (either predictor or response). However, this behaviour can vary depending on the type of classifier being used. For example, binary decision trees (fitctree) can use surrogate decision splits to improve accuracy as long as not all the predictor values are missing for a row. Information about how different classifiers deal with missing data is described in their respective documentation.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!