Skip to contents

Thin wrapper over stdReg::stdGlm() (Sjolander's regression-standardisation back end) when stdReg is installed. Without stdReg, falls back to an inline outcome- regression + bootstrap implementation (500 resamples, seed 42) that mirrors the legacy rmorie behaviour.

Usage

estimate_ate_gcomputation(
  data,
  treatment,
  outcome,
  covariates,
  outcome_model = "linear"
)

Arguments

data

Data frame with all required columns.

treatment

Binary treatment column (0/1).

outcome

Outcome column.

covariates

Character vector of covariates.

outcome_model

"linear" (OLS) or "logistic" (logit GLM).

Value

Named list with ate, se, ci_lower, ci_upper, n_obs, outcome_model.