View source: R/predict.logreg2.R
| predict.logreg2 | R Documentation |
INTERNAL FUNCTION: evaluates the importance of predictor combinations and generates predictions from a fitted logic regression object.
## S3 method for class 'logreg2'
predict(object, msz, ntr, newbin, newsep, newcens, ...)
object |
An object of class |
msz |
Integer. Maximum number of leaves in a tree. |
ntr |
Integer. Number of trees in |
newbin |
Matrix containing binary predictor values for new data points. |
newsep |
Integer. Number of separate predictors in |
newcens |
Vector. Censoring indicator for survival data (if applicable). |
... |
Additional arguments (currently ignored). |
This function is typically called internally by other functions and is not intended for direct use by package users.
Depending on the model type (object$type), this function produces:
Classification predictions (0/1) if type == "classification".
Predicted probabilities if type == "logistic".
Survival model predictions if type == "proportional.hazards".
A numeric vector or matrix of predictions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.