<?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: beta sigmoid function for growth modelling in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622515#M29970</link>
    <description>&lt;P&gt;I believe the constraint refers to the estimated value of te. I already chose the starting value of te such that it is larger than t (elapsedhours). I tried the suggestion but now it failed completely.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 18:34:26 GMT</pubDate>
    <dc:creator>vstorme</dc:creator>
    <dc:date>2020-02-05T18:34:26Z</dc:date>
    <item>
      <title>beta sigmoid function for growth modelling</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622503#M29968</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to fit a beta-sigmoid function (cfr &lt;A href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4244967/pdf/mcg029.pdf" target="_blank"&gt;https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4244967/pdf/mcg029.pdf&lt;/A&gt;) as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'beta-sigmoid';
proc nlin data=&amp;amp;lib..duration method=gauss;
   parms wmax 500 tm 100 te 360;                         /* initial guess */
   model LL= wmax*(1+((te-elapsedhours)/(te-tm)))*((elapsedhours/te)**(te/(te-tm))) ;
   output out=ModelOut2 predicted=Pred lclm=Lower95 uclm=Upper95;
	 by potnumber;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This model has the constraint that LL=wmax when t &amp;gt; te. t is here elapsedhours. Now I get a negative estimate for tm. How can I add this constraint?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Veronique&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 18:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622503#M29968</guid>
      <dc:creator>vstorme</dc:creator>
      <dc:date>2020-02-05T18:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: beta sigmoid function for growth modelling</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622508#M29969</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  if elapsedHours &amp;gt; te then value = wmax;
   else value = wmax*(1+((te-elapsedhours)/(te-tm)))*((elapsedhours/te)**(te/(te-tm))) ;
   model LL= value ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Feb 2020 18:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622508#M29969</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-02-05T18:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: beta sigmoid function for growth modelling</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622515#M29970</link>
      <description>&lt;P&gt;I believe the constraint refers to the estimated value of te. I already chose the starting value of te such that it is larger than t (elapsedhours). I tried the suggestion but now it failed completely.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 18:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622515#M29970</guid>
      <dc:creator>vstorme</dc:creator>
      <dc:date>2020-02-05T18:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: beta sigmoid function for growth modelling</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622527#M29972</link>
      <description>&lt;P&gt;Please show the SAS code you tried and the resulting log.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 19:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622527#M29972</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-02-05T19:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: beta sigmoid function for growth modelling</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622623#M29985</link>
      <description>&lt;P&gt;Dear PG,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added an extra constraint. My code is now:&lt;/P&gt;
&lt;P&gt;NOTE: DER.LLmax not initialized or missing. It will be computed automatically.&lt;BR /&gt;NOTE: DER.tm not initialized or missing. It will be computed automatically.&lt;BR /&gt;NOTE: DER.te not initialized or missing. It will be computed automatically.&lt;BR /&gt;NOTE: PROC NLIN grid search time was 0: 0: 0.&lt;BR /&gt;NOTE: Convergence criterion met.&lt;BR /&gt;NOTE: The above message was for the following BY group:&lt;BR /&gt;potNumber=129&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the log:&lt;/P&gt;
&lt;P&gt;NOTE: DER.LLmax not initialized or missing. It will be computed automatically.&lt;BR /&gt;NOTE: DER.tm not initialized or missing. It will be computed automatically.&lt;BR /&gt;NOTE: DER.te not initialized or missing. It will be computed automatically.&lt;BR /&gt;NOTE: PROC NLIN grid search time was 0: 0: 0.&lt;BR /&gt;NOTE: Convergence criterion met.&lt;BR /&gt;NOTE: The above message was for the following BY group:&lt;BR /&gt;potNumber=129&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 08:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622623#M29985</guid>
      <dc:creator>vstorme</dc:creator>
      <dc:date>2020-02-06T08:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: beta sigmoid function for growth modelling</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622624#M29986</link>
      <description>&lt;P&gt;my code is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'beta-sigmoid';
proc nlin data=&amp;amp;lib..duration method=gauss;
   parms LLmax 500 tm 100 te 360;                         /* initial guess */
   if elapsedHours &amp;gt; te then value = LLmax;
	                      else if elapsedhours=0 then value=0;
                        else value = LLmax*(1+((te-elapsedhours)/(te-tm)))*((elapsedhours/te)**(te/(te-tm))) ;
   model LL= value ;
   output out=ModelOut4 predicted=Pred lclm=Lower95 uclm=Upper95;
	 by potnumber;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I still find negative values for tm. I do not see an error in my formula but maybe I am overlooking it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 08:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622624#M29986</guid>
      <dc:creator>vstorme</dc:creator>
      <dc:date>2020-02-06T08:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: beta sigmoid function for growth modelling</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622687#M29987</link>
      <description>&lt;P&gt;The problem was that I chose the wrong startvalue. This final code works and gives me the expected solution. Thanks PG!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 12:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/beta-sigmoid-function-for-growth-modelling/m-p/622687#M29987</guid>
      <dc:creator>vstorme</dc:creator>
      <dc:date>2020-02-06T12:44:55Z</dc:date>
    </item>
  </channel>
</rss>

