plot_survival_cox_covariates {packDAMipd} | R Documentation |
Plotting survival function for all covariates calculated from cox regression results and returned coefficients
Description
Plotting survival function for all covariates calculated from cox regression results and returned coefficients
Usage
plot_survival_cox_covariates(
coxfit,
dataset,
param_to_be_estimated,
covariates,
indep_var
)
Arguments
coxfit |
cox regression fit result |
dataset |
param describing the methods |
param_to_be_estimated |
parameter to be estimated |
covariates |
covariates |
indep_var |
independent variable |
Value
plot and the survival function values
Examples
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")
[Package packDAMipd version 1.1.0 Index]