Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: saved results


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: saved results
Date   Mon, 14 May 2007 21:51:08 -0400

..
see -help statsby-

Michael Blasnik

----- Original Message ----- From: "Andy Choi" <andyichoi@yahoo.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Monday, May 14, 2007 8:34 PM
Subject: st: saved results



I am calculating rates of change using the following
command, where id is the unique identifier for an
individual with repeated measurements on the outcome
over time:

by id: regress outcome time

I would like to obtain saved estimates for each
individual, namely the beta coefficient for each
regression. I tried to obtain the regression results
for each individual with:

predict xb

But this will only predict based on the last
regression (for the last person in the data set). Unfortunately, "by id: predict xb" is not an option.

Any suggestion on how I can obtain the beta
coefficient for each individual?

*
*   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