plot_return_survival_curve {packDAMipd} | R Documentation |
Plotting survival function for all covariates using survfit
Description
Plotting survival function for all covariates using survfit
Usage
plot_return_survival_curve(
param_to_be_estimated,
dataset,
indep_var,
covariates,
timevar_survival
)
Arguments
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 |
Value
plot and the survival function values
Examples
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")
[Package packDAMipd version 1.1.0 Index]