Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Transform table to graph


From   "Roger B. Newson" <[email protected]>
To   [email protected]
Subject   Re: st: Transform table to graph
Date   Sun, 30 Mar 2014 17:20:35 +0100

The -parmest- package does not produce graphs. However, the -eclplot- package (also downloadable from SSC) produces graphs. And the graphs that it produces may contain parameters from 1 model, or from several models, depending on the dtaset in which it is used.

To produce an output dataset (or resultsset) containing parameters from several models, you need to produce multiple -parmest- resultssets for the multiple models, and then append them (using -append- in recent versions of Stata or the SSC package -dsconcat- in early versions of Stata). You can then use -if- to select the parameters you wanted to plot, and use -eclplot- to plot them.

Examples of the use of concatenated resultssets appear in the online help for -parmest-, which you can view by typing, in Stata,

help parmest

if -parmest- is installed. The online help for -parmest- also contains hypertext to Stata Journal articles, and Stata User Meeting presentations, about -parmest-.

I hope this helps.

Best wishes

Roger


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology, Occupational Medicine
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 7594 7931
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page: http://www.imperial.ac.uk/nhli/reomph/

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

On 30/03/2014 13:10, Kun A Susiloretni wrote:
Dear Statalist,

I am using -stcox and esstab- in Stata 11 to build models in a table. The commands are as follow:

eststo clear
eststo: quietly stcox i.y
eststo: quietly stcox i.y i.x1 i.x2 i.x3 i.x4
eststo: quietly stcox i.y i.x5 i.x6
eststo: quietly stcox i.y i.x1 i.x2 i.x3 i.x4 i.x5 i.x6
esttab using  Effect.rtf,  replace one noeqli label  title(Table 1: Effect of promotion xxxxx) nonumbers mtitles("Model A" "Model B"  "Model C" "Model D" )addnote ("aic= LR Test from Akaiki, df_m= degress of freedom of the model, Data source: EBF.dta" "Model A:  Based Model, Model B: maternal factors, Model C: family factors, Model D: full model")b(a2) eform ci n  pr2 scalars(aic df_m ) nogaps  longtable obslast

I like to present the table produced to a graph. I have tried using -parmest- , it produced graphs of each model. I need to depict  y's hazard ratio  of all models in a graph. I refer to  the Chicago Guide to Writing about Multivariate Analysis.

Any feedback would be greatly appreciated. Thank you very much in advance.

Best regards,
Kun Susiloretni 		 	   		
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index