Description Usage Arguments Value Examples
View source: R/help_parameter_estimation_survival.R
Plotting and return the residuals after cox proportional hazard model
1 2 3 4 5 6 7 | plot_return_residual_cox(
param_to_be_estimated,
indep_var,
covariates,
fit,
dataset
)
|
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 |
plot and the residuals
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 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.