object: The object determining which method should be used, containing any slots containing user defined parameters.
data: data.frame containing outcomes and covariates as defined in formula.
formula: formula describing the model.
label: A short string describing the model.
Returns
An object of class te_weights_fitted
Examples
fitter <- stats_glm_logit(tempdir())data(data_censored)# Not usually called directly by a userfitted <- fit_weights_model( object = fitter, data = data_censored, formula =1- censored ~ x1 + age_s + treatment, label ="Example model for censoring")fitted
unlink(fitted@summary$save_path$path)