plot_return_residual_survival: Plotting and return the residuals after survival model

Description Usage Arguments Value Examples

Description

Plotting and return the residuals after survival model

Usage

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

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

sheejamk/DecisionAnalysisModel documentation built on March 10, 2021, 7:21 p.m.