[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: extracting results of analysis into new variables
On Mon, 18 Nov 2002 11:54:30 -0000 Keith Farnsworth
> 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-)
Professor Stephen P. Jenkins <firstname.lastname@example.org>
Institute for Social and Economic Research (ISER)
University of Essex, Colchester, CO4 3SQ, UK
Tel: +44 (0)1206 873374. Fax: +44 (0)1206 873151.
* For searches and help try: