Prediction method for class morf.forest
.
# S3 method for morf.forest
predict(object, data, type = "response", ...)
Prediction results.
An morf.forest
object.
Data set of class data.frame
. It must contain at least the same covariates used to train the forests.
Type of prediction. Either "response"
or "terminalNodes"
.
Further arguments passed to or from other methods.
Riccardo Di Francesco
If type === "response"
(the default), the predicted conditional class probabilities are returned. If forests are
honest, these predictions are honest.
If type == "terminalNodes"
, the IDs of the terminal node in each tree for each observation in data
are returned.
morf
, marginal_effects