<?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: incomplete Gamma function in SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410843#M21483</link>
    <description>&lt;P&gt;this code working and I got results&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but why&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;A&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; B&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0.1&lt;/SPAN&gt; C&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0.2 ?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;sorry about that but I want to understand why you put 1 and 0.1 and 0.2 for parms&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2017 13:56:49 GMT</pubDate>
    <dc:creator>Barkamih</dc:creator>
    <dc:date>2017-11-06T13:56:49Z</dc:date>
    <item>
      <title>incomplete Gamma function in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410567#M21453</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use incomplete Gamma function model in SAS to fit a curve for dairy cows&amp;nbsp;&amp;nbsp;lactaion&amp;nbsp;,but I do not know how to write this model in SAS using Proc Nlin .&amp;nbsp; Can anybody please help me about this ?&lt;/P&gt;&lt;P&gt;How can I specify the values of a,b and c in the model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;y(t)= a t^b e^-c*t&amp;nbsp; &amp;nbsp; &amp;nbsp; (Wood's model)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I look forward to hearing from you.&lt;/P&gt;&lt;P&gt;Ibrahim.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 17:25:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410567#M21453</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2017-11-04T17:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: incomplete Gamma function in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410651#M21458</link>
      <description>&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/06/08/fit-circle.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2015/06/08/fit-circle.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2017 10:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410651#M21458</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-11-05T10:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: incomplete Gamma function in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410661#M21459</link>
      <description>&lt;P&gt;It sounds like you want to&amp;nbsp;estimate the parameters in the model for the "average cow."&lt;/P&gt;
&lt;P&gt;But are there covariates in the&amp;nbsp;model, such as age or treatment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide&amp;nbsp;example data. For example, do your data look like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cows;
input
cow time milk;
datalines;
1 1 1.1
1 2 1.2
1 3 1.3
1 4 1.1
2 1 1.3
2 2 1.3
2 3 1.5
2 4 1.4
3 1 0.9
3 2 1.2
3 3 1.4
3 4 1.3
4 1 1.0
4 2 1.1
4 3 1.5
4 4 1.3
;

proc sgplot data=cows;
series x=time y=milk / group=cow;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2017 23:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410661#M21459</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-05T23:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: incomplete Gamma function in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410727#M21469</link>
      <description>&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_nlin_examples05.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;The PROC NLIN documentation contains a very similar example.&lt;/A&gt;&amp;nbsp;Here it is modified for your model, using the data that I previously posted:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlin data=cows plots=fit; 
   parms A=1 B=0.1 C=0.2;
   bounds A B C &amp;gt; 0; 
   model milk = A * time**b * exp(-C*time);
   output out=Fit predicted=Pred;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 Nov 2017 23:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410727#M21469</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-05T23:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: incomplete Gamma function in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410808#M21482</link>
      <description>&lt;P&gt;Hi Rick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset&amp;nbsp;looks like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;Test_day_milk kg and Test date as this form of date dd/mm/yy but I had changed to &lt;STRONG&gt;Months&lt;/STRONG&gt; only in order to have 12 months in X var. And milk kg in Var Y, Also How to additivity&amp;nbsp;the Parameters&amp;nbsp;A,B&amp;nbsp;and c which based on what?&lt;/P&gt;&lt;P&gt;Alos, I'm&amp;nbsp;looking for&amp;nbsp;a code to plot this data&amp;nbsp;as a lactation&amp;nbsp;curve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my data set around 244000 records&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Herd	COW_ID	  Test_Day_milk _kg 	 Test_Date	   Months
A41  	2201	                 25	 01/01/2014     	1
A41     2201	                 45 	 02/04/2014       	4
A41  	2201	                 32	 15/05/2014         	5
A41   	2201	                 25      13/07/2014        	7
A42   	2202	                 25      05/02/2014         	2
A42   	2202	                 54      18/06/2014	        6
A42  	2202	                 44      08/08/2014	        8
A42     2202	                 45      20/10/2014	       10
A42     2202	                 32      20/11/2014	       11
A42    	2202	                 33	 25/12/2014	       12


&lt;/CODE&gt;&lt;/PRE&gt;_&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 12:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410808#M21482</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2017-11-06T12:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: incomplete Gamma function in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410843#M21483</link>
      <description>&lt;P&gt;this code working and I got results&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but why&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;A&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; B&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0.1&lt;/SPAN&gt; C&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0.2 ?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;sorry about that but I want to understand why you put 1 and 0.1 and 0.2 for parms&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 13:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410843#M21483</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2017-11-06T13:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: incomplete Gamma function in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410847#M21484</link>
      <description>&lt;P&gt;Glad you got the results you needed. I guess you discovered that the PLOTS=FIT option automatically creates the graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PARMS statement&amp;nbsp;sets initial guesses for the nonlinear optimization, so I guessed. You can put any numbers that you want there, especially if you&amp;nbsp;have a better guess than I do. If you make a bad guess, the process might not converge. If you make a good guess, it will converge in only a few iterations.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 14:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410847#M21484</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-06T14:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: incomplete Gamma function in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410854#M21486</link>
      <description>Great&lt;BR /&gt;thank you so much&lt;BR /&gt;I got the plots of my question, and thank you again for the explanation of parms.&lt;BR /&gt;&lt;BR /&gt;kind Rgrds&lt;BR /&gt;&lt;BR /&gt;Ibrahim&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Nov 2017 14:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/incomplete-Gamma-function-in-SAS/m-p/410854#M21486</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2017-11-06T14:16:52Z</dc:date>
    </item>
  </channel>
</rss>

