plot_return_residual_survival {packDAMipd}R Documentation

Plotting and return the residuals after survival model

Description

Plotting and return the residuals after survival model

Usage

plot_return_residual_survival(
  param_to_be_estimated,
  indep_var,
  covariates,
  fit
)

Arguments

param_to_be_estimated

parameter to be estimated

indep_var

independent variable

covariates

covariates

fit

fit object from survreg method

Value

plot and the residuals

Examples


data_for_survival <- survival::lung
surv_estimated <- use_parametric_survival("status", data_for_survival,
"sex",
info_distribution = "weibull",covariates = c("ph.ecog"), "time")
plot_return_residual_survival("status", "sex",
covariates = c("ph.ecog"),surv_estimated$fit)


[Package packDAMipd version 1.1.0 Index]