Computes forest out-of-sample honest weights for a morf.forest
object relative to the m-th class.
forest_weights_predicted_cpp(
leaf_IDs_test_list,
leaf_IDs_honest_list,
leaf_size_honest_list,
w
)
List of size n.trees
, storing the leaf of each tree where training units fall into.
List of size n.trees
, storing the leaf of each tree where honest units fall into.
List of size n.trees
, storing the size of the leaves of each tree computed with honest units.
1 if marginal effects are being computed, 0 otherwise for normal prediction.