View source: R/help_parameter_estimation_survival.R
plot_return_survival_curve | R Documentation |
Plotting survival function for all covariates using survfit
plot_return_survival_curve(
param_to_be_estimated,
dataset,
indep_var,
covariates,
timevar_survival
)
param_to_be_estimated |
parameter to be estimated |
dataset |
param describing the methods |
indep_var |
independent variable |
covariates |
covariates |
timevar_survival |
time variable for survival analysis |
plot and the survival function values
data_for_survival <- survival::lung
plot_return_survival_curve(param_to_be_estimated = "status",
dataset = data_for_survival,indep_var = "sex",covariates = c("ph.ecog"),
timevar_survival = "time")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.