Description Usage Arguments Details Value Examples
View source: R/2b_parameter_estimation_survival_functions.R
########################################################################### Get the parameter values using the survival analysis using cox proportional hazard
1 2 3 4 5 6 7 | use_coxph_survival(
param_to_be_estimated,
dataset,
indep_var,
covariates,
timevar_survival
)
|
param_to_be_estimated |
parameter of interest |
dataset |
data set to be provided |
indep_var |
the independent variable (column name in data file) |
covariates |
list of covariates - calculations to be done before passing |
timevar_survival |
time variable for survival analysis, default is NA false by default |
plots baseline cumulative hazard function, survival function for each covariate while keeping the other fixed at the mean value (using plot_survival_cox_covariates), survival function for each combination of covariate using survfit (using plot_return_survival_curve) and test for cox regression results It also returns risk relative to mean (predicted at mean value of each covariate) along with the fit results coefficients, SE of coefficients, summary, and analysis of deviance
the results of the regression analysis
1 2 3 4 5 6 7 8 | data_for_survival <- survival::aml
surv_estimated <- use_coxph_survival("status", data_for_survival, "x",
covariates = NA, "time")
data_for_survival <- survival::lung
surv_estimated <- use_coxph_survival("status", data_for_survival, "sex",
covariates = c("ph.ecog"), "time")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.