plot_return_survival_curve: Plotting survival function for all covariates using survfit

Description Usage Arguments Value Examples

Description

Plotting survival function for all covariates using survfit

Usage

1
2
3
4
5
6
7
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

1
2
3
4
5
 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")
 

sheejamk/DecisionAnalysisModel documentation built on March 10, 2021, 7:21 p.m.