IDEAS home Printed from
   My bibliography  Save this article

treatrew: A user-written command for estimating average treatment effects by reweighting on the propensity score


  • Giovanni Cerulli

    () (Ceris-CNR)


Reweighting is a popular statistical technique to deal with inference in the presence of a nonrandom sample, and various reweighting estimators have been proposed in the literature. This article presents the user-written command treatrew, which implements reweighting on the propensity-score estimator as proposed by Rosenbaum and Rubin (1983, Biometrika 70: 41–55) in their seminal article. The main contribution of this command lies in providing analytical standard errors for the average treatment effects in the whole population, in the subpopulation of the treated, and in that of the untreated. Standard errors are calculated using the approximation suggested by Wooldridge (2010, 920–930, Econometric Analysis of Cross Section and Panel Data [MIT Press]), but bootstrapped standard errors can also be easily computed. Because an implementation of this estimator with analytic standard errors and nonnormalized weights is missing in Stata, this article and the accompanying ado-file aim to provide the community with an easy-to-use method for reweighting on the propensity-score. The estimator proves to be a valuable tool for estimating average treatment effects under selection on observables. Copyright 2014 by StataCorp LP.

Suggested Citation

  • Giovanni Cerulli, 2014. "treatrew: A user-written command for estimating average treatment effects by reweighting on the propensity score," Stata Journal, StataCorp LP, vol. 14(3), pages 541-561, September.
  • Handle: RePEc:tsj:stataj:v:14:y:2014:i:3:p:541-561
    Note: to access software from within Stata, net describe

    Download full text from publisher

    File URL:
    File Function: link to article purchase
    Download Restriction: no


    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.

    Cited by:

    1. Dominik Boddin & Horst Raff & Natalia Trofimenko, 2017. "Foreign ownership and the export and import propensities of developing-country firms," The World Economy, Wiley Blackwell, vol. 40(12), pages 2543-2563, December.


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:tsj:stataj:v:14:y:2014:i:3:p:541-561. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Christopher F. Baum) or (Lisa Gilmore). General contact details of provider: .

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.