Statalist


[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" <r.newson@imperial.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
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


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
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: r.newson@imperial.ac.uk 
Web page: www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/pop
genetics/reph/

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

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] 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!

Best,

Martin


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

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