Description Usage Arguments Value Examples
View source: R/help_parameter_estimation_survival.R
Plot the predicted survival curves for covariates keeping the others fixed
1 2 3 4 5 6 7 8 | plot_prediction_parametric_survival(
param_to_be_estimated,
indep_var,
covariates,
dataset,
fit,
timevar_survival
)
|
param_to_be_estimated |
parameter to be estimated |
indep_var |
variable for which the levels have to be identified |
covariates |
the covariates |
dataset |
the dataset where these variables contain |
fit |
the fit result survreg |
timevar_survival |
time variable from the dataset |
plot
1 2 3 4 5 6 | data_for_survival <- survival::lung
surv_estimated <- use_parametric_survival("status", data_for_survival,
"sex",
info_distribution = "weibull",covariates = c("ph.ecog"),"time")
plot_prediction_parametric_survival("status", "sex",
covariates = c("ph.ecog"),data_for_survival, surv_estimated$fit, "time")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.