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

View source: R/help_parameter_estimation_survival.R

plot_survival_cox_covariatesR 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")
 

packDAMipd documentation built on May 29, 2024, 3:18 a.m.