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: RE: CDF plot with normal probability axis
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: RE: CDF plot with normal probability axis
Date
Thu, 14 Nov 2013 09:24:31 +0000
If you do it that way, the -midpoint- option should really be used.
Otherwise, the highest point is unplottable.
-distplot- is from SJ.
Nick
[email protected]
On 14 November 2013 08:57, Barclay Matthew (PUBLIC HEALTH ENGLAND)
<[email protected]> wrote:
> Hi Michael,
>
> I think -distplot- with the -trscale(invnorm(@))- option may do what you want.
>
> Alternatively, say we have logged values in variable log_val and cumulative probability in variable c_prob, then
>
> gen normal_c_prob = invnorm(c_prob)
> twoway line normal log_val
>
> will produce the graph you want, although the y-axis labelling will need to be modified to match the graph in your link.
>
> Cheers,
> Matt
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Livingston, Michael (TP)
> Sent: 14 November 2013 02:10
> To: [email protected]
> Subject: st: CDF plot with normal probability axis
>
> Warning this message contains links that it has not been possible to verify as safe. You should only click on the links if you are sure they are from a trusted source.
> Hi there,
>
> I'm trying to create simple plot to compare two distributions - I want the logged values across the x-axis and then the cumulative probability on the y-axis, but with a normal probability y-axis (like the one here: http://lowrank.net/gnuplot/plot7-e.html).
>
> It seems like it should be really simple, but I haven't come with any solutions using distplot or cdfplot. Is there something obvious I'm missing?
>
*
* 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/