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

Re: st: extracting results of analysis into new variables


From   "Stephen P. Jenkins" <stephenj@essex.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: extracting results of analysis into new variables
Date   Mon, 18 Nov 2002 12:08:39 +0000 (GMT Standard Time)

On Mon, 18 Nov 2002 11:54:30 -0000 Keith Farnsworth 
<keithf@memo.dundee.ac.uk> wrote:

> Hi,
> I have a large set of short time-series (one for each patient) of about 2000 patients. The patient is identified by a record number rc and the time series data point by pnt. I have used 
> 
> sort rc pnt
> by rc : regress dt lv
> 
> to obtain a lin. regression for each patient (as an example - the real thing will use non-linear regression). 
> 
> I am interested in the results of all these little regressions (coefficients, P values and Rsquared). My question is - can I extract these from the regression results (which go to the screen) in order to put them in a new variable. The aim is to summarise each patient's time series using the results of their regression model. 
> 
> Like this: 
> 
> Patient   Rsquare  const P coef P  
> 
> 
> Is this possible? Or do I have to write the regression method explicitly (ie not using regress)? 

-help statsby-  may help you

-findit statsby- provides a longer menu of possibilities (including 
Roger Newson's -parmest-)


Stephen
----------------------
Professor Stephen P. Jenkins <stephenj@essex.ac.uk>
Institute for Social and Economic Research (ISER)
University of Essex, Colchester, CO4 3SQ, UK
Tel: +44 (0)1206 873374. Fax: +44 (0)1206 873151.
http://www.iser.essex.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