View source: R/generate_aft_dgm_helpers.R
| compare_multiple_survreg | R Documentation |
Performs comprehensive comparison of multiple survreg models including convergence checking, information criteria comparison, and model selection.
compare_multiple_survreg(
...,
model_names = NULL,
verbose = TRUE,
criteria = c("AIC", "BIC")
)
... |
survreg model objects to compare |
model_names |
Optional character vector of model names |
verbose |
Logical, whether to print detailed output (default: TRUE) |
criteria |
Character vector of criteria to use ("AIC", "BIC", or both) |
A list of class "multi_survreg_comparison" containing:
Named list of input models
Convergence status for each model
Model comparison statistics
Model rankings by different criteria
Name of the best model
Text recommendation
## Not run:
fit1 <- survreg(Surv(time, status) ~ x, dist = "weibull")
fit2 <- survreg(Surv(time, status) ~ x, dist = "lognormal")
comparison <- compare_multiple_survreg(fit1, fit2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.