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

RE: st: How to save regression result by pair

From   "Newson, Roger B" <[email protected]>
To   <[email protected]>
Subject   RE: st: How to save regression result by pair
Date   Thu, 31 Jan 2008 16:19:41 -0000

Another possibility is to use -parmby-, which produces an output dataset
(or resultsset) with 1 observation per parameter per by-group, and data
on parameter estimates, confidence limits, P-values, and other parameter
attributes. The -parmby- program is part of the -parmest- package, which
you can download from SSC using the -ssc- command.

I hope this helps.


Roger B Newson
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected] 
Web page:
Departmental Web page:

Opinions expressed are those of the author, not of the institution.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Maarten buis
Sent: 31 January 2008 13:13
To: [email protected]
Subject: Re: st: How to save regression result by pair

--- [email protected] wrote:
>     Could you answer me a question. In my data, there are 10 cities.
> I used 'by city: reg exp'. My qiuestion is how can I save the
> regression result by city.

Have a look at -statsby-, see -help statsby- and the example below:
*--------------- begin example ------------------
sysuse auto, clear
recode rep78 1/2=3
statsby _b _se, by(rep78) noi clear: reg mpg weight
*---------------- end example -------------------
(For more on how to use examples I sent to the Statalist, see )

Hope this helps,

Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

Sent from Yahoo! Mail - a smarter inbox

*   For searches and help try:

*   For searches and help try:

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