plot_return_residual_cox: Plotting and return the residuals after cox proportional...

Description Usage Arguments Value Examples

View source: R/help_parameter_estimation_survival.R

Description

Plotting and return the residuals after cox proportional hazard model

Usage

1
2
3
4
5
6
7
plot_return_residual_cox(
  param_to_be_estimated,
  indep_var,
  covariates,
  fit,
  dataset
)

Arguments

param_to_be_estimated

parameter to be estimated

indep_var

independent variable

covariates

covariates

fit

fit object from coxph method

dataset

data used for cox ph model

Value

plot and the residuals

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_return_residual_cox("status", "sex", covariates = c("ph.ecog"),
  surv_estimated$fit,data_for_survival )
  

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