Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Output format after 'margins'


From   "Roger B. Newson" <r.newson@imperial.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Output format after 'margins'
Date   Mon, 19 Nov 2012 15:06:51 +0000

I personally use the -parmest- package, downloadable from SSC, to save results from -margins- in an output dataset (or resultsset) with 1 observation per estimated parameter and data on parameter names, estimates, confidence limits, P-values and other parameter attributes. To use -parmest- after -margins-, use the options

bmat(r(b)) vmat(r(V))

to extract parameter estimates and variances from the saved results from -margins-. The output dataset can be listed using the -list()- option, saved to memory (overwriting the pre-existing dataset) using the -norestore- option, or saved to a disk file using the -saving()- option. The on-line documentation for -parmest- contains hypertext references for further reading about the use of -parmest-.

I hope this helps.

Best wishes

Roger

Roger B Newson BSc MSc DPhil
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: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

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

On 19/11/2012 14:35, Pham Ngoc Minh wrote:
Dear Statalists,

I often encounter calculation of adjusted means or ORs using
'margins', but don't know how to control the format of outputs, i.e.,
decimal numbers to present data in tables quickly. I have to do this
work manually by copying data to excel for manipulation, but it is
time-consuming. Does anyone have suggestions to make the work faster?

Ngoc Minh Pham
Research Fellow
National Center for Global Health & Medicine, Tokyo, Japan.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index