INTERNAL FUNCTION: evaluates the importance of predictor combinations and generates predictions from a fitted logic regression object.
# S3 method for logreg2
predict(object, msz, ntr, newbin, newsep, newcens, ...)A numeric vector or matrix of predictions.
An object of class "logreg".
Integer. Maximum number of leaves in a tree.
Integer. Number of trees in object.
Matrix containing binary predictor values for new data points.
Integer. Number of separate predictors in newbin.
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".