Description Usage Arguments Value Author(s) See Also Examples
Fit Cox proportional hazards model
1 |
x |
Dataset. |
y |
Response. Required if formula is missing. |
formula |
See |
... |
Sent to |
Fitted Cox proportional hazards model.
Christofer Bäcklin
1 2 3 4 5 6 7 8 9 10 11 12 | if(requireNamespace("survival")){
data("ovarian", package = "survival")
model <- fit(
modeling_procedure(
method = "coxph",
parameter = list(formula = list(survival::Surv(futime, fustat) ~ age))),
x = ovarian, y = NULL
)
predict(model, ovarian[11:16,])
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.