Analyzing cluster/longitudinal data in Stata

Source: http://www.ats.ucla.edu/stat/stata/faq/clusterreg.htm

regress math homework
svy: regress math homework
areg math homework, absorb(schid)
areg math homework, absorb(schid) cluster(schid)
xtreg math homework, i(schid) fe
xtreg math homework, i(schid) robust fe
xtreg math homework, i(schid) re
xtreg math homework, i(schid) robust re
xtreg math homework, i(schid) corr(exc) pa
xtreg math homework, i(schid) corr(exc) robust pa
xtgls math homework, i(schid) panels(iid)
xtgls math homework, i(schid) panels(hetero)
xtreg math homework, i(schid) mle
xtmixed math homework || schid:, mle
xtmixed math homework || schid:, reml

Linear Regression (including longitudinal data) – SAS, Stata, SPSS

Source:
Hun Myoung Park, Ph.D.
Indiana University

1. Introduction

2. Least Squares Dummy Variable Regression

3. Panel Data Models

4. One-way Fixed Effect Models: Fixed Group Effect

5. One-way Fixed Effect Models: Fixed Time Effect

6. Two-way Fixed Effect Models

7. Random Effect Models

8. Poolability Test

9. Conclusion

Appendix

References

PDF Panel Data Notes