<?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: Tweedie CDF in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/454410#M5264</link>
    <description>&lt;P&gt;Am afraid I can't, I don't use DS2 procedure.&amp;nbsp; You need to learn how to use it, its syntax and logic.&amp;nbsp; Start with the SAS help and work from there.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p1im5eq2oxakk5n1gr3jl7ruc8a0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p1im5eq2oxakk5n1gr3jl7ruc8a0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Apr 2018 12:26:38 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-04-16T12:26:38Z</dc:date>
    <item>
      <title>Tweedie CDF</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/454385#M5260</link>
      <description>&lt;P&gt;Hi! I would like to ask a question regarding CDF Tweedie in SAS. I read this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=ds2ref&amp;amp;docsetTarget=n0sqs8cpv6ucnkn1upsfmy7tm3yl.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=ds2ref&amp;amp;docsetTarget=n0sqs8cpv6ucnkn1upsfmy7tm3yl.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt; , and I found this statement :&amp;nbsp;&lt;/P&gt;&lt;PRE class="xis-codeFragment"&gt;y=cdf('TWEEDIE', .8, 5)&lt;/PRE&gt;&lt;P&gt;But the statement won't work in my SAS University Edition. The result is :&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 y=cdf('TWEEDIE', 0.8, 5);&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;88&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone knows why is it like this? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 10:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/454385#M5260</guid>
      <dc:creator>nikolasfilbert</dc:creator>
      <dc:date>2018-04-16T10:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Tweedie CDF</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/454394#M5262</link>
      <description>&lt;P&gt;CDF is a function,&amp;nbsp;and is part of the proc ds2 step.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2016/02/19/reasons-love-proc-ds2/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2016/02/19/reasons-love-proc-ds2/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to write the procedure to generate this, to start with:&lt;/P&gt;
&lt;PRE&gt;proc ds2;
  ...
quit;&lt;/PRE&gt;
&lt;P&gt;Put your statements in where the elipses are.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 10:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/454394#M5262</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-16T10:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tweedie CDF</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/454409#M5263</link>
      <description>&lt;P&gt;I wrote it like this :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc ds2;&lt;BR /&gt;y=cdf('TWEEDIE', 0.8, 5);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but there is no output, and I got this log:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 proc ds2;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 y=cdf('TWEEDIE', 0.8, 5);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 quit;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Some DS2 statements have not been executed. Use the RUN; statement to execute DS2 statements before QUIT;.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE DS2 used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.05 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.03 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;90&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Can you tell me why?&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Apr 2018 12:04:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/454409#M5263</guid>
      <dc:creator>nikolasfilbert</dc:creator>
      <dc:date>2018-04-16T12:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tweedie CDF</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/454410#M5264</link>
      <description>&lt;P&gt;Am afraid I can't, I don't use DS2 procedure.&amp;nbsp; You need to learn how to use it, its syntax and logic.&amp;nbsp; Start with the SAS help and work from there.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p1im5eq2oxakk5n1gr3jl7ruc8a0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p1im5eq2oxakk5n1gr3jl7ruc8a0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 12:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/454410#M5264</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-16T12:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Tweedie CDF</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/454418#M5266</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/144601"&gt;@nikolasfilbert&lt;/a&gt;: I am not familiar with DS2, but found the following structure in the documentation:&lt;/P&gt;
&lt;PRE&gt;proc ds2;
data;
  declare double y;
  method run();
    y=cdf('TWEEDIE', 0.8, 5);
  end;
enddata;

run;
quit;
&lt;/PRE&gt;
&lt;P&gt;It ran in SAS UE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 13:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/454418#M5266</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-04-16T13:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Tweedie CDF</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/456524#M5315</link>
      <description>&lt;P&gt;You can run the CDF function in the DATA step. No need to use DS2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Tweedie;
do x = 0 to 3 by 0.05;
   y=cdf('TWEEDIE', x, 5);
   output;
end;
run;

title "CDF of the Tweedie(5) Distribution";
proc sgplot data=Tweedie;
   series x=x y=y;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 13:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/456524#M5315</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-04-23T13:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Tweedie CDF</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/456611#M5316</link>
      <description>Thank you for your response! But if I want to input x from a column of a table, how should I write it?</description>
      <pubDate>Mon, 23 Apr 2018 17:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/456611#M5316</guid>
      <dc:creator>nikolasfilbert</dc:creator>
      <dc:date>2018-04-23T17:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Tweedie CDF</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/456623#M5318</link>
      <description>&lt;P&gt;If the SAS data set 'HAVE' contains a variable named 'X' that contains the points at which you want to evaluate the CDF, you can say&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Tweedie;
set HAVE;
y=cdf('Tweedie', X, 5);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Apr 2018 18:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Tweedie-CDF/m-p/456623#M5318</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-04-23T18:02:59Z</dc:date>
    </item>
  </channel>
</rss>

