Statalist


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

Re: st: RE: visualizing stpiece models with graph dot?


From   SCHNELL Philipp <philipp.schnell@ined.fr>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: visualizing stpiece models with graph dot?
Date   Fri, 12 Sep 2008 09:35:02 +0200

Dear Nick and Maarten,

Thanks for your help and the references.

Best,

Philipp

Quoting Nick Cox <n.j.cox@durham.ac.uk>:

-graph dot- is not the only option here. You could use -twoway dot-.
There is much discussion of this approach in Stata Journal 8(2):269--289
(2008).

Either way, you need to enter your covariate names and hazard ratios as
new variables.

How to sort is up to you.

Nick
n.j.cox@durham.ac.uk

SCHNELL Philipp

I did a piecewise constant exponential model (with 7 covariates) and
would like to visualize the results! Is it possible to use the
graph dot command to plot the hazard ratio of covariates (in a
particular order - from high to low!)? If so, how do I do that?

It should look like this:

                        covariate6  |...........o....
                        covariate1  |.........o......
                        covariate3  |.......o........
                                    +----------------
                                    hazard ratio


the command to plot should be:

graph dot numerical variable , over(categorical variable
[,sort((stat)varname)])

but my problems are:
a) how to introduce my covariates instead of a categorical var?
b) how to sort?


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/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/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