Thin wrapper around WeightIt::weightit() exposing the full
WeightIt method palette ("glm", "cbps",
"ebal", "ps", "energy", "optweight",
and any future additions). Provides MORIE callers with a stable
morie_* entry point for balancing weights while preserving
the underlying object so callers can pipe into
survey::svyglm or cobalt::bal.tab downstream.
Usage
morie_causal_weighting(
data,
treatment,
covariates,
method = "glm",
estimand = c("ATE", "ATT", "ATC"),
...
)Arguments
- data
A data frame.
- treatment
Name of the treatment column (binary, multinomial, or continuous depending on
method).- covariates
Character vector of covariate names.
- method
One of
"glm","cbps","ebal","ps","energy","optweight", or any other method accepted byWeightIt::weightit().- estimand
One of
"ATE","ATT","ATC"; defaults to"ATE".- ...
Additional arguments forwarded to
WeightIt::weightit().
Value
Named list with elements weights (numeric vector),
propensity_scores (numeric vector or NULL),
method, estimand, ess (effective sample
size), and weightit (the original WeightIt object).