Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Stacking beta coefficients from multiple models
From
"Weichle, Thomas" <[email protected]>
To
<[email protected]>
Subject
st: Stacking beta coefficients from multiple models
Date
Fri, 4 Feb 2011 13:51:34 -0600
Hi Statalisters,
I'm running multiple regress commands all with the same variables. I'd
like to extract the beta coefficients e(b) from each model and stack
them creating a matrix with all of the beta coefficients for all models.
My data are in long format (multiple records per individual) and I'd
like to run a regression for each individual. As an example:
study_id days result
2 0 10.9
2 7 10.6
2 12 10.1
2 13 11.2
2 14 8
4 0 8.3
4 1 8.4
4 2 9.2
4 3 8.6
4 5 8.1
5 0 12.7
6 1 11
6 3 11.4
6 4 13.9
regress result days
Tom Weichle
Math Statistician
Center for Management of Complex Chronic Care (CMC3)
Hines VA Hospital, Bldg 1, C202
708-202-8387 ext. 24261
[email protected]
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/