Fit a general linear model to a mobForest model
This method computes predicted outcome for each observation in the data frame using the tree model supplied as an input argument.
get.mf.object.glm(object, main_model, partition_vars, data, new_test_data, ntree, family, prob_cutoff = 0.5)
A bootstrap model object created by bootstrap()
A model in character format.
A vector of partition variables.
A data frame containing the variables in the model.
A data frame representing test data for validating random forest model. This data is not used in the tree building process
Number of trees to be constructed in forest (default = 300).
A description of error distribution and link function to be used in the model. This parameter needs to be specified if generalized linear model is considered. The parameter "binomial()" is to be specified when logistic regression is considered and "poisson()" when Poisson regression is considered as the node model. The values allowed for this parameter are binomial() and poisson().
In case of logistic regression as a node model, the predicted probabilities for OOB cases are converted into classes (yes/no, high/low, etc as specified) based on this probability cutoff. If logistic regression is not considered as node model, the prob_cutoff = NULL. By default it is 0.5 when parameter not specified (and logistic regression considered).