View source: R/help_parameter_estimation_survival.R
plot_return_residual_survival | R Documentation |
Plotting and return the residuals after survival model
plot_return_residual_survival(
param_to_be_estimated,
indep_var,
covariates,
fit
)
param_to_be_estimated |
parameter to be estimated |
indep_var |
independent variable |
covariates |
covariates |
fit |
fit object from survreg method |
plot and the residuals
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.