fit_model_weighted.Rd
Fit various models with weighting
fit_model_weighted(
dat,
outcome,
exposure,
covariates,
id_var,
weights,
method,
method_args
)
A dataframe containing the variables of interest. A dataframe.
A string indicating the outcome variable. A string.
A string indicating the exposure variable. A string.
A list of covariate names. A list or vector.
The variable name to be used to identify subjects. A string.
The weights
element of the result of the call
to estimate_weights()
. A weightit object.
The name of the model to be fitted (e.g., glm
). A string.
A named list with the following variables:
family
, family to be used within the model to be fitted.
add_inter_exposure
, check argument in create_formula()
.
add_inter_exposure_specific
, check argument in create_formula()
.
add_splines_exposure
, check argument in create_formula()
.
df_splines
, check argument in create_formula()
.
threshold_smooth
, check argument in create_formula()
.
threshold_k
, check argument in create_formula()
.