<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to draw a standard normal denstity curve in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53346#M1822</link>
    <description>This is the code I used. It only generate the standard normal pdf alone, which is what i want. But you can see it is spiky instead of curvy around zero. Do you know it there better way to do it?&lt;BR /&gt;
&lt;BR /&gt;
data try;&lt;BR /&gt;
do z = -5 to 5 by 0.001;&lt;BR /&gt;
if z gt 0 then pdf = 1- probnorm(z);&lt;BR /&gt;
else pdf = probnorm(z);&lt;BR /&gt;
output;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
 proc gplot data=try; &lt;BR /&gt;
  plot pdf*z ;&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
Many thanks,&lt;BR /&gt;
Lu</description>
    <pubDate>Thu, 21 Apr 2011 14:58:51 GMT</pubDate>
    <dc:creator>lueryy2000</dc:creator>
    <dc:date>2011-04-21T14:58:51Z</dc:date>
    <item>
      <title>How to draw a standard normal denstity curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53343#M1819</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I was trying to draw a standard normal density curve using probnorm function. But instead of curvy it is spiky around zero. So is there any way to do it?&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Lu</description>
      <pubDate>Tue, 19 Apr 2011 14:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53343#M1819</guid>
      <dc:creator>lueryy2000</dc:creator>
      <dc:date>2011-04-19T14:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a standard normal denstity curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53344#M1820</link>
      <description>It might help to show what you've attempted.</description>
      <pubDate>Wed, 20 Apr 2011 21:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53344#M1820</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-04-20T21:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a standard normal denstity curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53345#M1821</link>
      <description>how about it:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data normal;&lt;BR /&gt;
 do i=1 to 10000 ;&lt;BR /&gt;
  normal=rand('normal',0,1);&lt;BR /&gt;
  output;&lt;BR /&gt;
 end;&lt;BR /&gt;
run;&lt;BR /&gt;
proc univariate data=normal ;&lt;BR /&gt;
 histogram  normal/normal;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Thu, 21 Apr 2011 07:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53345#M1821</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-04-21T07:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a standard normal denstity curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53346#M1822</link>
      <description>This is the code I used. It only generate the standard normal pdf alone, which is what i want. But you can see it is spiky instead of curvy around zero. Do you know it there better way to do it?&lt;BR /&gt;
&lt;BR /&gt;
data try;&lt;BR /&gt;
do z = -5 to 5 by 0.001;&lt;BR /&gt;
if z gt 0 then pdf = 1- probnorm(z);&lt;BR /&gt;
else pdf = probnorm(z);&lt;BR /&gt;
output;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
 proc gplot data=try; &lt;BR /&gt;
  plot pdf*z ;&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
Many thanks,&lt;BR /&gt;
Lu</description>
      <pubDate>Thu, 21 Apr 2011 14:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53346#M1822</guid>
      <dc:creator>lueryy2000</dc:creator>
      <dc:date>2011-04-21T14:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a standard normal denstity curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53347#M1823</link>
      <description>Thanks. But I only want to have the standard normal pdf alone. Do you know if there is better way to do it. Below is my original code:&lt;BR /&gt;
&lt;BR /&gt;
data try;&lt;BR /&gt;
do z = -5 to 5 by 0.001;&lt;BR /&gt;
if z gt 0 then pdf = 1- probnorm(z);&lt;BR /&gt;
else pdf = probnorm(z);&lt;BR /&gt;
output;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=try;&lt;BR /&gt;
plot pdf*z ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Many thanks,&lt;BR /&gt;
Lu</description>
      <pubDate>Thu, 21 Apr 2011 15:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53347#M1823</guid>
      <dc:creator>lueryy2000</dc:creator>
      <dc:date>2011-04-21T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a standard normal denstity curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53348#M1824</link>
      <description>The probnorm function returns the CDF, try using pdf('normal',z).&lt;BR /&gt;
&lt;BR /&gt;
Good luck!</description>
      <pubDate>Thu, 21 Apr 2011 15:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53348#M1824</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2011-04-21T15:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a standard normal denstity curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53349#M1825</link>
      <description>I am sorry I don't get it. Is there a function that return the pdf? Thanks.</description>
      <pubDate>Thu, 21 Apr 2011 15:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53349#M1825</guid>
      <dc:creator>lueryy2000</dc:creator>
      <dc:date>2011-04-21T15:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a standard normal denstity curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53350#M1826</link>
      <description>Sorry I just figured it out. It gives the perfect curves as I thought to be.&lt;BR /&gt;
Thanks you very much!&lt;BR /&gt;
Lu</description>
      <pubDate>Thu, 21 Apr 2011 15:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-standard-normal-denstity-curve/m-p/53350#M1826</guid>
      <dc:creator>lueryy2000</dc:creator>
      <dc:date>2011-04-21T15:25:16Z</dc:date>
    </item>
  </channel>
</rss>

