View source: R/2b_parameter_estimation_survival_functions.R
use_survival_analysis | R Documentation |
############################################################################ Get the parameter values using the survival analysis
use_survival_analysis(
param_to_be_estimated,
dataset,
indep_var,
info_get_method,
info_distribution,
covariates,
timevar_survival,
cluster_var = NA
)
param_to_be_estimated |
parameter of interest |
dataset |
data set to be provided |
indep_var |
the independent variable (column name in data file) |
info_get_method |
additional information on methods e.g Kaplan-Meier ot hazard |
info_distribution |
distribution name eg. for logistic regression -binomial |
covariates |
list of covariates - calculations to be done before passing |
timevar_survival |
time variable for survival analysis, default is NA |
cluster_var |
cluster variable for survival analysis |
This function helps to get the parameter values after the survival analysis Takes into account many different methods like KM.FH, Cox proportional etc. and then calls appropriate functions to do the survival analysis
the results of the regression analysis
data_for_survival <- survival::aml
surv_estimated_aml <- use_survival_analysis("status", data_for_survival,
"x",
info_get_method = "parametric", info_distribution = "weibull",
covariates = NA, "time")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.