I have a data set with about ~2000 data points. Of these ~1000 actually have features/data. (All 2000 data points have an outcome)
Where there's no data, there is very likely a signal. In other words, if I'm not able to get data for that data point, that's significant in and of itself, and there is a big difference in the target variable when there is data and when there's not data.
The problem is that rpart shows me that these missing values result in "observations deleted due to missingness," so the model doesn't make any
Is there a way to set up an rpart model such that it makes a prediction on data points with no features (i.e. the only variable available is the outcome)?
my_model <- rpart(bad ~ count_found, data = mydata)