The valueSelector = "value" option uses the model prediction from ranger to impute the points
|
if (valueSelector == "value") { |
|
return(pred) |
|
} else { |
This is easy to do but inappropriate because it mean that the imputed values will be noiseless, rather than reflecting the observational error of the model.
For regression, the correct thing to do would be to add random noise to the predictions with mean zero and a standard deviation equal to the standard deviation of the OOB residuals.
The valueSelector = "value" option uses the model prediction from ranger to impute the points
miceRanger/R/imputeFromPred.R
Lines 19 to 21 in 4b87a65
This is easy to do but inappropriate because it mean that the imputed values will be noiseless, rather than reflecting the observational error of the model.
For regression, the correct thing to do would be to add random noise to the predictions with mean zero and a standard deviation equal to the standard deviation of the OOB residuals.