pedrohcgs / kmte

Treatment Effects with Censored Outcomes
2 stars 3 forks source link

kmte: An R Package for Treatment Effects with Censored Outcomes

Description

The kmte R package includes a variety of policy evaluations tools when the outcome of interest, typically a duration, is subjected to right censoring. The content includes estimators and tests related to average, quantile and distributional treatment effects under different identifying assumptions including unconfoundedness, local treatment effects, and nonlinear difrences-in-differences.

In short, kmte implements all estimators proposed in Sant'Anna (2016a) "Program Evaluation with Right-Censored Data", and all tests proposed in Sant'Anna (2016b), "Nonparametric Tests for Treatment Effect Heterogeneity with Duration Outcomes". Both articles are available at Pedro H.C. Sant'Anna webpage, https://sites.google.com/site/pedrohcsantanna/ .

Functions

Exogenous Treatment Allocation (Unconfoundedness setup)

When the treatment is exogenous, i.e. under the unconfoundedness assumption, we estimate the following treatment effect parameters:

In addition, the kmte package also implements the following nonparametric tests for treatment effect heterogeneity:

Endogenous Treatment Allocation (Local Treatment Effects setup)

When the treatment is endogenous and we have a binary instrument, i.e. under the local treatment effect setup, we estimate the following treatment effect parameters:

Similar to the unconfoundedness case, the following functions implement different nonparametric tests for treatment effect heterogeneity:

Installing kmte

This github website hosts the source code. To install the kmte package, you simply need to run the following two lines of code in R:

    library(devtools)
    install_github("pedrohcgs/kmte")

A help file with examples will be made available in the near future. Furthermore, the Nonlinear Differences-in-Differences estimator proposed in Sant'Anna (2016a), "Program Evaluation with Right-Censored Data", will also be added.

This package was written by Pedro H. C. Sant'Anna (Vanderbilt University)