Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Matrix


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Matrix
Date   Mon, 21 Jul 2003 19:56:02 +0100

sgsong@park.ccpr.ucla.edu

> I have a two level data set: students nested within school. Assume a
> simple case where there are only 4 variables:
>
> Y: math achievement, the dependent variable
> X: family background meausred in SEI, individual level covariate
> Z: school - average SEI, school level covariate
> S: school ID.
>
> I want to estimate a series of simple regression of Y on X
> within each
> context (each school), extract the coefficient vectors, and
> stack them
> (coefficient vector for each school) to form a coefficient matrix to
> include coeffcient vectors for all schools. What is the
> best way to do this?

-statsby- ?

Nick
n.j.cox@durham.ac.uk

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index