Regression models with optimal dichotomizing predictor(s), used either as boolean or continuous predictor(s).
# S3 method for optimSplit_dichotom
predict(
object,
formula = attr(object, which = "formula", exact = TRUE),
newdata = attr(object, which = "data", exact = TRUE),
boolean = TRUE,
...
)
Function predict.optimSplit_dichotom returns a list of regression models, coxph model for Surv response, glm for logical response, and lm model for numeric response.
an optimSplit_dichotom object
(optional) formula to specify the response in test data. If missing, the model formula of training data is used
(optional) test data.frame, candidate numeric predictors \(x\)'s must have the same name and dimension as the training data. If missing, the training data is used
logical scalar, whether to use the dichotomized predictor (default, TRUE
), or the continuous predictor (FALSE
)
additional parameters, currently not in use