Stata
Products Purchase Support Company
Search
   >> Home >> Products >> Stata 10 >> Mixed models
order stataorder stata

Multilevel mixed models for binary and count responses

Stata’s new mixed-models estimation routines xtmelogit and xtmepoisson make it easy to fit two-way, multiway, multilevel, and hierarchical random-effects models on binary and count data.

To fit a model of graduation with fixed coefficient on x1 and random coefficient on x2 at the school level, and with random intercepts at both the school and class-within-school level, you type

    . xtmelogit graduate x1 x2 || school: x2 || class:
xtmelogit log

The results show that the average coefficient across schools on x2 is 1.31 with standard deviation .83. There is also a significant overall effect due to school and a somewhat significant effect due to class. The LR test shows that the three random effects, taken together, provide a substantially better fit than does standard (marginal) logistic regression.

Estimation is by ML, and standard errors and confidence intervals (in fact, the full covariance matrix) are estimated for all variance components.

xtmelogit and xtmepoisson provide four random-effects variance structures—identity, independent, exchangeable, and unstructured—and you can combine them to form even more complex block-diagonal structures.

predict after xtmelogit and xtmepoisson will calculate predicted random effects.

For a complete list of what’s new in longitudinal/panel-data analysis, click here.

Back to highlights

Stata 10
Overview: Why use Stata?
Stata/MP
64-bit Stata
Capabilities
New in Stata 10
Highlights
Graph Editor
Mixed models
Exact statistics
Power analysis
Endogenous variables
Multivariate methods
Dynamic panel data
Choice models
Survey data
GUI
Time/date variables
Saved results
More statistics
Survival analysis
Time series
Panel data
Mata
Programming
Stata/MP
Interface
Supported platforms
Which Stata package?
Technical support
User comments
Products
Stata 10
Order Stata
Upgrade
NetCourses
Bookstore
Stata Journal
Stata Press
Stata News
STB
Stat/Transfer
Gift Shop

Site overview
Products
Resources & support
Company
Site index

© Copyright 1996–2008 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index