Wraps a Frisch-Waugh-Lovell partialling-out estimator with
n_folds cross-fitting on the OLS nuisance functions
\(E[Y|X]\) and \(E[D|X]\), then regresses outcome residuals on
treatment residuals for the ATE; heteroskedasticity-robust standard
errors. ATT is the ATE divided by the treated share (a simple
weighting approximation; for the production-grade DML use
DoubleML).
Usage
morie_otis_otdml(
df,
outcome = "Y",
treatment = "D",
covariates = NULL,
n_folds = 3L,
seed = 123L
)