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

st: RE: How to regress and outreg by year?

From   "Newson, Roger B" <>
To   <>
Subject   st: RE: How to regress and outreg by year?
Date   Wed, 14 May 2008 20:00:36 +0100

One possibility might be to use the -parmby- command, which is part of
the -parmest- package, downloadable from SSC using the -ssc- command.
-parmby- creates an output dataset (or resultsset) with 1 observation
per estimated parameter per by-group, and data on the parameter names,
estimates, standard errors, P-values, confidence intervals, and other
parameter attributes specified by the user. This output dataset (or
resultsset) may be listed to the output and/or stored in a disk file
and/or written to memory, replacing the existing dataset. It can then be
used to produce confidence interval plots (using the SSC package
-eclplot-), or to produce confidence interval tables (using the SSC
package -listtex-). And -parmby-, unlike the -by:- qualifier, can be
combined with -xi:-.

I hope this helps.

Best wishes


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
Web page:
Departmental Web page:

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

-----Original Message-----
[] On Behalf Of Ziyang Wang
Sent: 14 May 2008 17:05
To: statalist
Subject: st: How to regress and outreg by year?

Dear all,

May I ask a novice question? I'm really new to Stata. I want to run
regression by year and the outreg the coefficients for each year. I want
to use like :
by year: xi: areg score age education , absorb(nation), but stata tells
me "by" can not be combined with xi. Anyone has good solutions? Also I
don't think using by can outreg coefficients for each year.

Many thanks in advance!



*   For searches and help try:

*   For searches and help try:

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