EconPapers    
Economics at your fingertips  
 

Causal effect estimation and inference using Stata

Joseph Terza

Stata Journal, 2017, vol. 17, issue 4, 939-961

Abstract: Terza (2016b, Health Services Research 51: 1109–1113) gives the cor- rect generic expression for the asymptotic standard errors of statistics formed as sample means of nonlinear data transformations. In this article, I assess the per- formance of the Stata margins command as a relatively simple alternative for cal- culating such standard errors. I note that margins is not available for all packaged nonlinear regression commands in Stata and cannot be implemented in conjunc- tion with user-defined-and-coded nonlinear estimation protocols that do not make a predict command available. When margins is available, however, I establish (using a real-data example) that it produces standard errors that are asymptoti- cally equivalent to those obtained from the formulations in Terza (2016b) and the appendix available with this article. This result favors using margins (with its relative coding simplicity) when available. In all other cases, use Mata to code the standard-error formulations in Terza (2016b). I discuss examples, and I give corresponding Stata do-files in appendices.

Keywords: margins; causal effect estimation; causal inference (search for similar items in EconPapers)
Date: 2017
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj17-4/st0506/
References: Add references at CitEc
Citations: View citations in EconPapers (1)

Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0506 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:17:y:2017:i:4:p:939-961

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

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-22
Handle: RePEc:tsj:stataj:v:17:y:2017:i:4:p:939-961