Skip to contents

Thin wrapper over a weighted stats::lm() plus HC3 robust SEs from sandwich + lmtest when installed. Note: this is the legacy shape used by older MRM pipelines; new code should prefer morie_estimate_ate() (in R/causal.R) for the richer morie_te_result return shape.

Usage

estimate_ate(data, outcome, treatment, weights_col)

Arguments

data

Data frame containing the analytical sample.

outcome

Name of the outcome column.

treatment

Name of the binary treatment column.

weights_col

Name of the weights column (e.g. IPTW).

Value

Named list with ate and se (HC3-robust when available).