Computes honest in-sample predictions for an morf.forest
object.
honest_fitted(forest, train_sample, honest_sample, y_m_honest, y_m_1_honest)
In-sample honest predictions.
An morf.forest
object.
Training sample.
Honest sample.
Indicator variable, whether the outcome is smaller than or equal to the m-th class.
Indicator variable, whether the outcome is smaller than or equal to the (m-1)-th class.
forest
must have been grown using only the training sample. honest_fitted
replaces the leaf estimates
using the outcome from the honest sample (using the prediction method of morf
).