README.md

parTreat

Efficient estimation of treatment effects based on parametric models of the treatment effect, as proposed by Athey et al. (2021).

To install this package in R, run the following commands:

library(devtools) 
install_github("michaelpollmann/parTreat")

Usage

If X are the outcomes of the control observations, and Y are the outcomes of the treated observations, call

eif_additive(X,Y)

or

waq(X,Y)

for the influence function-based or the weighted average of quantile differences estimators, to efficiently estimate the treatment effect assuming additivity. The partially adaptive asymmetric trimmed mean estimator is available as

atm_diff(X,Y)

For a multiplicative model, use

est_eif_log <- eif_additive(log(X),log(Y))
log_to_level(est_eif_log, X, Y)

or

est_waq_log <- waq(log(X),log(Y))
log_to_level(est_waq_log, X, Y)

Brief Description

Efficiently estimate treatment effects imposing a parametric assumption on treatment effects of the form Y(1) = h(Y(0), a) where a is the parameter to be estimated. Currently, three estimators for the additive model Y(1) = Y(0) + tau are implemented, where tau is the treatment effect. There is also a helper function to estimate an additive specification in logs and translate the estimated effect and standard error to level-effects, such that the functions can be used for the multaplicative model Y(1) = a * Y(0) as well.

The three estimators are:

Under correct specification (of the additive or multiplicative model), the eif and waq estimators are asymptotically equivalent. They are adaptive, in the sense that if the additive model is correctly specified, they are just as efficient as parametric estimators that use knowledge of the true distribution of the outcomes (up to shift).

Note

The eif_additive and waq functions estimate the density based on the control observations. This is convenient if the control group is larger than (or at least as large as) the treatment group. If the treated group is larger, one can call the functions with reverse groups Y and X. The treatment effect is then minus the estimated effect, and no adjustment is necessary for the standard error.

Generally, r waq(X,Y)$tau and r -waq(Y,X)$tau are not the same. Under correct specification, they are asymptotically equivalent, but in finite samples they will differ based on which group is used to estimate the densities. The same is also true when using eif_additive.

This package ports the Matlab code used in the simulations of Athey et al. (2021) to R. Please use the Matlab replication code to exactly replicate the results and for implementations of other estimators studied by Athey et al. (2021).

Reference

Susan Athey, Peter J. Bickel, Aiyou Chen, Guido W. Imbens, and Michael Pollmann. Semiparametric Estimation of Treatment Effects in Randomized Experiments. 2021. [arxiv]



michaelpollmann/parTreat documentation built on Dec. 21, 2021, 5:58 p.m.