plot_survival_cox_covariates: Plotting survival function for all covariates calculated from...

Description Usage Arguments Value Examples

View source: R/help_parameter_estimation_survival.R

Description

Plotting survival function for all covariates calculated from cox regression results and returned coefficients

Usage

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

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

packDAMipd documentation built on March 3, 2021, 5:07 p.m.