IDEAS home Printed from
   My bibliography  Save this paper

Tricks of the trade: Getting the most out of xtmixed


  • Roberto G. Gutierrez

    () (StataCorp)


Stata’s xtmixed command can be used to fit mixed models, models that contain both fixed and random effects. The fixed effects are merely the coefficients from a standard linear regression. The random effects are not directly estimated but summarized by their variance components, which are estimated from the data. As such, xtmixed is typically used to incorporate complex and multilevel random-effects structures into standard linear regression. xtmixed’s syntax is complex but versatile, allowing it to be used widely, even for situations that do not fit the classical "mixed" framework. In this talk, I will give a tutorial on uses of xtmixed not commonly considered, including examples of heteroskedastic errors, group structures on random effects, and smoothing via penalized splines.

Suggested Citation

  • Roberto G. Gutierrez, 2008. "Tricks of the trade: Getting the most out of xtmixed," Fall North American Stata Users' Group Meetings 2008 18, Stata Users Group.
  • Handle: RePEc:boc:fsug08:18

    Download full text from publisher

    File URL:
    File Function: presentation slides
    Download Restriction: no


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

    Cited by:

    1. Caviglia-Harris, Jill L. & Harris, Daniel, 2011. "The Impact of Settlement Design on Tropical Deforestation Rates and Resulting Land Cover Patterns," Agricultural and Resource Economics Review, Northeastern Agricultural and Resource Economics Association, vol. 40(3), December.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:


    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:boc:fsug08:18. 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). 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.