fit_weights_model | R Documentation |
Method for fitting weight models
fit_weights_model(object, data, formula, label)
object |
The object determining which method should be used, containing any slots containing user defined parameters. |
data |
|
formula |
|
label |
A short string describing the model. |
An object of class te_weights_fitted
fitter <- stats_glm_logit(tempdir())
data(data_censored)
# Not usually called directly by a user
fitted <- 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.