<?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: proc nlin how to determine the initial parameters in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471125#M24526</link>
    <description>&lt;P&gt;thanks a lot Rick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works. I don't have the&amp;nbsp;message "PROC NLIN failed to converge" anymore but "Convergence criterion met"&lt;/P&gt;&lt;P&gt;I Wonder why you suggeses this grid values ?&lt;/P&gt;&lt;P&gt;I assume it is because my initials values were around a=55, b=62 and c=8, , exact ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 15:22:02 GMT</pubDate>
    <dc:creator>Nasser_DRMCP</dc:creator>
    <dc:date>2018-06-18T15:22:02Z</dc:date>
    <item>
      <title>proc nlin how to determine the initial parameters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/470991#M24514</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let a= 54.8829483019154;
%let b= 61.8215366579612  ;
%let c= 8.4693242460909 ;

proc nlin 	
		data=TXPTE_GENEALL method= MARQUARDT MAXITER=500;
		parms a=&amp;amp;a b=&amp;amp;b c=&amp;amp;c ;
		model GENEALL = 1 / (a + ((TRIM-b)/c)**2);
		output out= MODEL_GENERALISTE_CTX
		predicted= ESTIM_GENEALL
		parms= A B C;
	run;	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset "TXPTE_GENEALL" that holds 32 values.&lt;/P&gt;&lt;P&gt;by lauching the this proc nlin, the problem I encounter is tha the ESTIM_GENEALL column get only one value for each observations.&lt;/P&gt;&lt;P&gt;and the message is below:&lt;/P&gt;&lt;P&gt;WARNING: Step size shows no improvement.&lt;BR /&gt;WARNING: PROC NLIN failed to converge.&lt;BR /&gt;NOTE: Negative model SS. Check model and initial parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Wonder how to determine the correct values a, b, c.&lt;/P&gt;&lt;P&gt;thanks a lot in advance for your help&lt;/P&gt;&lt;P&gt;Nasser&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 08:13:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/470991#M24514</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2018-06-18T08:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlin how to determine the initial parameters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471041#M24515</link>
      <description>&lt;P&gt;I succeed to determine the starting values but I don't know how many values should be contained inside the input table&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 12:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471041#M24515</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2018-06-18T12:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlin how to determine the initial parameters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471042#M24516</link>
      <description>&lt;P&gt;You need&amp;nbsp;to&amp;nbsp;&amp;nbsp;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_nlmixed_syntax09.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;check the documentation and review the correct syntax for the MODEL statement.&lt;/A&gt;&amp;nbsp;That syntax is invalid. Look at the examples, too. Perhaps you intended to say something like&lt;/P&gt;
&lt;P&gt;LL =&amp;nbsp; 1 / (a + ((TRIM-b)/c)**2);&lt;/P&gt;
&lt;P&gt;MODEL&amp;nbsp;GENEALL&amp;nbsp;~ general(LL);&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 12:30:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471042#M24516</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-06-18T12:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlin how to determine the initial parameters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471046#M24518</link>
      <description>&lt;P&gt;Thanks Rick for your quick response&lt;/P&gt;&lt;P&gt;I checked the documentation (your link) but i do not manage to find the correct syntax.&lt;/P&gt;&lt;P&gt;I took a look at the "Iteratively Reweighted Least Squares" paragraph.&lt;/P&gt;&lt;P&gt;and the syntax you suggested does not seem to work .&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 12:47:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471046#M24518</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2018-06-18T12:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlin how to determine the initial parameters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471052#M24520</link>
      <description>&lt;P&gt;I'm sorry. My mistake. I gave you the link and syntax for PROC NLMIXED instead of NLIN. My apologies.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 13:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471052#M24520</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-06-18T13:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlin how to determine the initial parameters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471055#M24521</link>
      <description>&lt;P&gt;don't worry about that. I noticed it. I think my syntax is correct because it works with another set of data.&lt;/P&gt;&lt;P&gt;my input dataset gets one column (a rate %) and there are&amp;nbsp;obs. What I don not understand is why the "&lt;/P&gt;&lt;P&gt;ESTIM_GENEALL" column in the output table has the same value for all obs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 13:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471055#M24521</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2018-06-18T13:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlin how to determine the initial parameters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471063#M24522</link>
      <description>&lt;P&gt;The following call to PROC NLIN uses your&amp;nbsp;syntax on simulated data and gets non-constant predicted values. Therefore the problem you report is not because of the procedure. The most likely cause, therefore, is your data. This problem would occur if the parameter estimate for 'a' is huge or if TRIM is equal to 'b' or is very very close to 'b' for all observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let a= 54.8829483019154;
%let b= 61.8215366579612  ;
%let c= 8.4693242460909 ;

data TXPTE_GENEALL;
do i = 1 to 200;
   TRIM = rand("Normal", &amp;amp;b, &amp;amp;c);
   GENEALL = 1 / (&amp;amp;a + ((TRIM-&amp;amp;b)/&amp;amp;c)**2) + 0.1*rand("Normal");
   output;
end;
run;

proc nlin 	
		data=TXPTE_GENEALL method= MARQUARDT MAXITER=500;
		parms a=&amp;amp;a b=&amp;amp;b c=&amp;amp;c ;
		model GENEALL = 1 / (a + ((TRIM-b)/c)**2);
		output out= MODEL_GENERALISTE_CTX
		predicted= ESTIM_GENEALL
		parms= A B C;
	run;	

/* visualize the predicted values */
proc sort data=MODEL_GENERALISTE_CTX;  by TRIM; run;

proc sgplot data=MODEL_GENERALISTE_CTX;
series x=TRIM y=ESTIM_GENEALL;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jun 2018 13:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471063#M24522</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-06-18T13:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlin how to determine the initial parameters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471070#M24523</link>
      <description>&lt;P&gt;Thanks Rick.&lt;/P&gt;&lt;P&gt;sorry but I do not understand.&lt;/P&gt;&lt;P&gt;the rates&amp;nbsp;values are like this below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TXPTE_GENEALL;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; geneall &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0.0133904&lt;/P&gt;&lt;P&gt;0.0132869&lt;/P&gt;&lt;P&gt;0.0121815&lt;/P&gt;&lt;P&gt;0.0110640&lt;/P&gt;&lt;P&gt;0.0118499&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;and trim (that means quarters from year 2010 SEPT to 2017 DEC) so trim values are 1,2,3,4...31,32. so trim not close to b parameter wich is equal to 61.8215366579612.&lt;/P&gt;&lt;P&gt;do you mean I should change the b value ?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 13:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471070#M24523</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2018-06-18T13:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlin how to determine the initial parameters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471080#M24524</link>
      <description>&lt;P&gt;I don't know. Your initial post says that the procedure does not converge. Usually that means that either&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. The&amp;nbsp;model does not fit the data, or&lt;/P&gt;
&lt;P&gt;2. The model does not converge from the initial guess that you specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can specify a grid of initial values if you think the model fits, but that it doesn't&amp;nbsp;converge from the initial values &amp;amp;a, &amp;amp;b, and &amp;amp;c. See the doc for the PARMS&amp;nbsp;statement. For example, you could try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PARMS a=25, 50, 100&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; b=20 to 100 by 20&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; c = 5 to 12;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume you've plotted the response against TRIM to see that your model is&amp;nbsp;reasonable?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 13:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471080#M24524</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-06-18T13:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc nlin how to determine the initial parameters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471125#M24526</link>
      <description>&lt;P&gt;thanks a lot Rick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works. I don't have the&amp;nbsp;message "PROC NLIN failed to converge" anymore but "Convergence criterion met"&lt;/P&gt;&lt;P&gt;I Wonder why you suggeses this grid values ?&lt;/P&gt;&lt;P&gt;I assume it is because my initials values were around a=55, b=62 and c=8, , exact ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 15:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-nlin-how-to-determine-the-initial-parameters/m-p/471125#M24526</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2018-06-18T15:22:02Z</dc:date>
    </item>
  </channel>
</rss>

