<?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: Quantile in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883716#M43277</link>
    <description>And also better post sas dataset " R.Cov" . As I said you can't have pd_ap=1 in it.</description>
    <pubDate>Thu, 06 Jul 2023 12:40:20 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-07-06T12:40:20Z</dc:date>
    <item>
      <title>Quantile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883699#M43272</link>
      <description>&lt;P&gt;Team, I tri to use the formula for calculating:&lt;/P&gt;&lt;P&gt;G = QUANTILE('NORMAL', pd). pd has different values, also of 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the log gives me the next error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stepik_0-1688644020680.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85586iDB8576BBA8459720/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stepik_0-1688644020680.png" alt="Stepik_0-1688644020680.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this mean that the function can not provide &lt;SPAN&gt;inverse cumulative distribution function of a real number&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stepik&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 11:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883699#M43272</guid>
      <dc:creator>Stepik</dc:creator>
      <dc:date>2023-07-06T11:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883700#M43273</link>
      <description>of a real number = 1</description>
      <pubDate>Thu, 06 Jul 2023 11:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883700#M43273</guid>
      <dc:creator>Stepik</dc:creator>
      <dc:date>2023-07-06T11:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883706#M43274</link>
      <description>&lt;P&gt;Your argument of QUANTILE() is not right .&lt;/P&gt;
&lt;P&gt;since it is a P value, it should be (0,1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input pd;
cards;
.1
.2
.3
.4
;


data _null_;
set have;
G = QUANTILE('NORMAL', pd);
put G= pd=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;
38   ;
39
40
41   data _null_;
42   set have;
43   G = QUANTILE('NORMAL', pd);
44   put G= pd=;
45   run;

G=-1.281551566 pd=0.1
G=-0.841621234 pd=0.2
G=-0.524400513 pd=0.3
G=-0.253347103 pd=0.4
NOTE: 从数据集 WORK.HAVE. 读取了 4 个观测
NOTE: “DATA 语句”所用时间（总处理时间）:
      实际时间          0.01 秒
      CPU 时间          0.00 秒

&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Jul 2023 12:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883706#M43274</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-06T12:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883707#M43275</link>
      <description>&lt;P&gt;Solved taking pd=1 separately&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883707#M43275</guid>
      <dc:creator>Stepik</dc:creator>
      <dc:date>2023-07-06T13:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883713#M43276</link>
      <description>&lt;P&gt;Sorry. I have to leave now. I will take a look tomorrow.&lt;/P&gt;
&lt;P&gt;But maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&amp;nbsp;could give you a hand. He is good at this.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 12:38:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883713#M43276</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-06T12:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883716#M43277</link>
      <description>And also better post sas dataset " R.Cov" . As I said you can't have pd_ap=1 in it.</description>
      <pubDate>Thu, 06 Jul 2023 12:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883716#M43277</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-06T12:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883720#M43278</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/443295"&gt;@Stepik&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you just need to handle the cases &lt;FONT face="courier new,courier"&gt;pd=0&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;pd=1&lt;/FONT&gt;&amp;nbsp;separately in the calculation of &lt;FONT face="courier new,courier"&gt;G&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;N&lt;/FONT&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;if pd in (0 1) then N=pd;
else do;&lt;/STRONG&gt;
&lt;FONT color="#999999"&gt;  G = QUANTILE('NORMAL', pd); 
  N = CDF('NORMAL', G/SQRT(1-R)+SQRT(R/(1-R))*QUANTILE('NORMAL',0.999));&lt;/FONT&gt;
&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, since &lt;FONT face="courier new,courier"&gt;N=pd&lt;/FONT&gt; implies &lt;FONT face="courier new,courier"&gt;RWA1=0&lt;/FONT&gt;, you can also put the entire block of your assignment statements into the ELSE branch:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;if pd in (0 1) then &lt;FONT color="#FF00FF"&gt;RWA1=0&lt;/FONT&gt;;
else do;&lt;/STRONG&gt;
  &lt;FONT color="#999999"&gt;... your code ...&lt;/FONT&gt;
&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;(before the RETURN statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883720#M43278</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-07-06T13:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Quantile</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883721#M43279</link>
      <description>I did it separately indeed for pd=1. thanks</description>
      <pubDate>Thu, 06 Jul 2023 13:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Quantile/m-p/883721#M43279</guid>
      <dc:creator>Stepik</dc:creator>
      <dc:date>2023-07-06T13:17:06Z</dc:date>
    </item>
  </channel>
</rss>

