View source: R/model_wrappers.R
| fit_survival_models | R Documentation |
Fit survival nuisance models
fit_survival_models(
data,
response,
censoring,
response_call = "phreg",
response_args = list(),
censoring_call = "phreg",
censoring_args = list()
)
data |
data.frame |
response |
Response formula (e.g., Surv(time, event) ~ A + W) |
censoring |
Censoring formula (e.g., Surv(time, event == 0) ~ A + W)) |
response_call |
Model call for the response model (e.g. "mets::phreg") |
response_args |
Additional arguments passed to the response model |
censoring_call |
Similar to response_callb |
censoring_args |
Similar to response_args |
List with elements T_model and C_model
Andreas Nordland, Klaus K. Holst
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.