plot_return_residual_cox {packDAMipd}R Documentation

Plotting and return the residuals after cox proportional hazard model

Description

Plotting and return the residuals after cox proportional hazard model

Usage

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


  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 )
  

[Package packDAMipd version 1.1.0 Index]