View source: R/optimSplit_dichotom.R
predict.optimSplit_dichotom | R Documentation |
Regression models with optimal dichotomizing predictor(s), used either as boolean or continuous predictor(s).
## S3 method for class 'optimSplit_dichotom'
predict(
object,
formula = attr(object, which = "formula", exact = TRUE),
newdata = attr(object, which = "data", exact = TRUE),
boolean = TRUE,
...
)
object |
an optimSplit_dichotom object |
formula |
(optional) formula to specify the response in test data. If missing, the model formula of training data is used |
newdata |
(optional) test data.frame, candidate numeric predictors |
boolean |
logical scalar, whether to use the dichotomized predictor (default, |
... |
additional parameters, currently not in use |
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.
# see ?`Qindex-package`
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.