View source: R/importance_survreg.R
importance.survreg | R Documentation |
Create a variable importance plot for a survreg model
## S3 method for class 'survreg'
importance(model_final, model_data, dict = NA, nperm = 500, ...)
model_final |
a model object |
model_data |
the data used to fit the model |
dict |
a plotting dictionary for models terms |
nperm |
the number of permutations used to calculate the importance |
... |
arguments passed to other methods |
an object of type importance_plot
type |
the type of importance plot |
data |
the importance data required for the plot |
importance
model_final <- survival::survreg(survival::Surv(futime, fustat) ~ ecog.ps*rx + age,
data = survival::ovarian,
dist = "weibull")
imp <- importance(model_final, survival::ovarian, nperm = 50)
plot(imp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.