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]

st: RE: CDF plot with normal probability axis


From   "Barclay Matthew (PUBLIC HEALTH ENGLAND)" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: CDF plot with normal probability axis
Date   Thu, 14 Nov 2013 08:57:05 +0000

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?

With thanks,
Michael



___________________________________________________
Michael Livingston
Senior Research Fellow | Centre for Alcohol Policy Research, Turning Point Alcohol and Drug Centre
Address | 54-62 Gertrude Street, Fitzroy, VIC, 3065
Ph | 03 8413 8407
Fax | 03 9416 3420
www.capr.edu.au



________________________________

THIS E-MAIL IS CONFIDENTIAL. If you have received this e-mail in error, please notify us by return e-mail and delete the document. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. Eastern Health is not liable for the proper and complete transmission of the information contained in this communication or of any delay in its receipt.

*
*   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/


********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************

*
*   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