View source: R/help_parameter_estimation_survival.R
plot_survival_cox_covariates | R Documentation |
Plotting survival function for all covariates calculated from cox regression results and returned coefficients
plot_survival_cox_covariates(
coxfit,
dataset,
param_to_be_estimated,
covariates,
indep_var
)
coxfit |
cox regression fit result |
dataset |
param describing the methods |
param_to_be_estimated |
parameter to be estimated |
covariates |
covariates |
indep_var |
independent variable |
plot and the survival function values
data_for_survival <- survival::lung
surv_estimated <- use_coxph_survival("status", data_for_survival, "sex",
covariates = c("ph.ecog"), "time")
plot_survival_cox_covariates(surv_estimated$fit,data_for_survival,
"status", covariates = c("ph.ecog"), "sex")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.