EconPapers    
Economics at your fingertips  
 

Estimation of pre- and posttreatment average treatment effects with binary time-varying treatment using Stata

Giovanni Cerulli and Marco Ventura

Stata Journal, 2019, vol. 19, issue 3, 551-565

Abstract: In this article, we describe tvdiff, a community-contributed command that implements a generalization of the difference-in-differences estimator to the case of binary time-varying treatment with pre- and postintervention peri- ods. tvdiff is flexible and can accommodate many actual situations, enabling the user to specify the number of pre- and postintervention periods and a graphical representation of the estimated coefficients. In addition, tvdiff provides two dis- tinct tests for the necessary condition of the identification of causal effects, namely, two tests for the so-called parallel-trend assumption. tvdiff is intended to sim- plify applied works on program evaluation and causal inference when longitudinal data are available.

Keywords: tvdiff; treatment effects; difference-in-differences (search for similar items in EconPapers)
Date: 2019
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj19-3/st0566/
References: Add references at CitEc
Citations: View citations in EconPapers (34)

Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0566 link to article purchase

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:19:y:2019:i:3:p:551-565

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

DOI: 10.1177/1536867X19874224

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-03-20
Handle: RePEc:tsj:stataj:v:19:y:2019:i:3:p:551-565