Statalist


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

Re: st: RE: A question about twoway graph


From   "Albert Newton" <[email protected]>
To   [email protected]
Subject   Re: st: RE: A question about twoway graph
Date   Fri, 8 Aug 2008 11:36:02 -0700

Thanks. Sorry for the attachment thing. I had no idea that it is not allowed.

Albert

On Fri, Aug 8, 2008 at 11:06 AM, Nick Cox <[email protected]> wrote:
> Please don't send attachments to Statalist. This advice is quite
> explicit in the FAQ.
> Many members can't handle them and attachments just create large digital
> messes in the daily digest. Sending attachments is thus anti-social.
>
> On your question, it appears that some of your data are negative, so
> that is why your graph shows some negative values. One remedy is not to
> plot such data.
>
> If your question is purely about axis labels, then you can do things
> like
>
> ... yla(-1 "1" -0.5 "0.5" 0 0.5 1)
>
> Nick
> [email protected]
>
> Albert Newton
>
>    I am trying to plot the propensity score for treatment and
> comparison group in one graph. So I use this command
>
>        twoway `vlist0' (rbar pscore1) (rbar pscore2) `vlist1' ,
> yline(0,
> lstyle(foreground) extend) ylabel() xtitle("Propensity Score")
> ytitle("Density") legend(`l1' `l2' `l3' `l4')  `options'
>
>    It turns out that half of the y axis labelings are negative. My
> question is: how to get rid of the negative signs?
>
>   Please see the attached graph for an example.
>
> *
> *   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index