########################################################################### Get the parameter values using the survival analysis method FH
use_fh_survival(
param_to_be_estimated,
dataset,
indep_var,
covariates,
timevar_survival
)
the results of the regression analysis
parameter of interest
data set to be provided
the independent variable (column name in data file)
list of covariates
time variable for survival analysis, default is NA
This function is for survival analysis using FH. This plots the cumulative survival function for each combination of covariate If the covariate is numeric, R takes it as different levels. The plot uses the returned list of survfit and extracts the time and the strata from summary of the fit (implemented in plot_return_survival_curve function)
# \donttest{
data_for_survival <- survival::aml
surv_estimated <- use_fh_survival("status", data_for_survival, "x",
covariates = NA, "time"
)
# }
Run the code above in your browser using DataLab