IDEAS home Printed from
   My bibliography  Save this article

Mata Matters: Structures


  • William Gould



Mata is Stata’s matrix language. In the Mata Matters column, we show how Mata can be used interactively to solve problems and as a programming language to add new features to Stata. Structures are the sub ject of this column. Structures are an advanced programming technique that can greatly simplify complicated code.

Suggested Citation

  • William Gould, 2007. "Mata Matters: Structures," Stata Journal, StataCorp LP, vol. 7(4), pages 556-570, December.
  • Handle: RePEc:tsj:stataj:v:7:y:2007:i:4:p:556-570

    Download full text from publisher

    File URL:
    Download Restriction: no

    References listed on IDEAS

    1. James J. Heckman & Hidehiko Ichimura & Petra E. Todd, 1997. "Matching As An Econometric Evaluation Estimator: Evidence from Evaluating a Job Training Programme," Review of Economic Studies, Oxford University Press, vol. 64(4), pages 605-654.
    2. Roberto G. Gutierrez & Jean Marie Linhart & Jeffrey S. Pitblado, 2003. "From the help desk: Local polynomial regression and Stata plugins," Stata Journal, StataCorp LP, vol. 3(4), pages 412-419, December.
    3. Hall, Alastair R & Rudebusch, Glenn D & Wilcox, David W, 1996. "Judging Instrument Relevance in Instrumental Variables Estimation," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 37(2), pages 283-298, May.
    4. Steven Glazerman & Dan M. Levy & David Myers, "undated". "Nonexperimental Versus Experimental Estimates of Earnings Impacts," Mathematica Policy Research Reports 7c8bd68ac8db47caa57c70ee1, Mathematica Policy Research.
    5. Austin Nichols, 2006. "Weak Instruments: An Overview and New Techniques," North American Stata Users' Group Meetings 2006 3, Stata Users Group.
    6. Nelson, Charles R & Startz, Richard, 1990. "Some Further Results on the Exact Small Sample Properties of the Instrumental Variable Estimator," Econometrica, Econometric Society, vol. 58(4), pages 967-976, July.
    7. Becker, Sascha O. & Caliendo, Marco, 2007. "mhbounds – Sensitivity Analysis for Average Treatment Effects," IZA Discussion Papers 2542, Institute for the Study of Labor (IZA).
    8. Griliches, Zvi & Hausman, Jerry A., 1986. "Errors in variables in panel data," Journal of Econometrics, Elsevier, vol. 31(1), pages 93-118, February.
    9. Alberto Abadie & David Drukker & Jane Leber Herr & Guido W. Imbens, 2004. "Implementing matching estimators for average treatment effects in Stata," Stata Journal, StataCorp LP, vol. 4(3), pages 290-311, September.
    10. David S. Lee, 2001. "The Electoral Advantage to Incumbency and Voters' Valuation of Politicians' Experience: A Regression Discontinuity Analysis of Elections to the U.S..," NBER Working Papers 8441, National Bureau of Economic Research, Inc.
    11. Anna Mikusheva & Brian P. Poi, 2006. "Tests and confidence sets with correct size when instruments are potentially weak," Stata Journal, StataCorp LP, vol. 6(3), pages 335-347, September.
    12. Murray Leibbrandt & James Levinsohn & Justin McCrary, 2005. "Incomes in South Africa Since the Fall of Apartheid," NBER Working Papers 11384, National Bureau of Economic Research, Inc.
    13. John DiNardo & David S. Lee, 2002. "The Impact of Unionization on Establishment Closure: A Regression Discontinuity Analysis of Representation Elections," NBER Working Papers 8993, National Bureau of Economic Research, Inc.
    14. Alberto Abadie & Guido W. Imbens, 2008. "On the Failure of the Bootstrap for Matching Estimators," Econometrica, Econometric Society, vol. 76(6), pages 1537-1557, November.
    15. Imbens, Guido W. & Lemieux, Thomas, 2008. "Regression discontinuity designs: A guide to practice," Journal of Econometrics, Elsevier, vol. 142(2), pages 615-635, February.
    16. Justin McCrary, 2007. "Manipulation of the Running Variable in the Regression Discontinuity Design: A Density Test," NBER Technical Working Papers 0334, National Bureau of Economic Research, Inc.
    17. David H. Autor & Lawrence F. Katz & Melissa S. Kearney, 2005. "Rising Wage Inequality: The Role of Composition and Prices," NBER Working Papers 11628, National Bureau of Economic Research, Inc.
    18. Kosuke Imai & David A. van Dyk, 2004. "Causal Inference With General Treatment Regimes: Generalizing the Propensity Score," Journal of the American Statistical Association, American Statistical Association, vol. 99, pages 854-866, January.
    19. repec:mpr:mprres:3694 is not listed on IDEAS
    20. Lee, David S. & Card, David, 2008. "Regression discontinuity inference with specification error," Journal of Econometrics, Elsevier, vol. 142(2), pages 655-674, February.
    21. Sascha O. Becker & Marco Caliendo, 2007. "Sensitivity analysis for average treatment effects," Stata Journal, StataCorp LP, vol. 7(1), pages 71-83, February.
    22. José Mata & José A. F. Machado, 2005. "Counterfactual decomposition of changes in wage distributions using quantile regression," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 20(4), pages 445-465.
    23. Brian P. Poi, 2006. "Jackknife instrumental variables estimation in Stata," Stata Journal, StataCorp LP, vol. 6(3), pages 364-376, September.
    24. Michael Spence, 1973. "Job Market Signaling," The Quarterly Journal of Economics, Oxford University Press, vol. 87(3), pages 355-374.
    Full references (including those not matched with items on IDEAS)

    More about this item


    Mata; structures; struct;


    Access and download statistics


    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:7:y:2007:i:4:p:556-570. 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.