<?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: Larger 95% Confidence Limits in first round of estimation: Method: Marquardt in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772089#M37749</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks for the comments. The 95% CI estimated for T is unrealistic as it should not be this much large. But its 95% CI reduced to the acceptable range after fixing the parameter A with 0.08.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 08:48:53 GMT</pubDate>
    <dc:creator>ukhan</dc:creator>
    <dc:date>2021-10-05T08:48:53Z</dc:date>
    <item>
      <title>Larger 95% Confidence Limits in first round of estimation: Method: Marquardt</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/771874#M37746</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to estimate six different parameters from my data using the following PROC, but the 95% CI of one parameter is too large (&lt;U&gt;Parameter T&lt;/U&gt;). When I fixed “&lt;U&gt;parameter A&lt;/U&gt;” with its estimated value in the second round, the 95% CI of “&lt;U&gt;parameter T&lt;/U&gt;” also gets reduced. &lt;STRONG&gt;How can I fix this issue without fixing “parameter A”?&lt;/STRONG&gt; Output SAS results are provided as a PDF attachment. Many thanks for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlin data=exp method=marquardt;
parms RLTE=0.00132 B=0.5 C=0.8 A=0.08 T=3 TU=20;

R=RLTE*predlcm**C*EXP(A*temp)*(1-EXP(T*(temp-TU)));
s=sow**(1-B)-R*(1-B)*time;
if s&amp;gt;0 then stx=s**(1/(1-B));
else stx=0;

model stw=stx;

output out=expp p=pstw r=stw_residual;
run;
proc summary data=expp;
     var stw_residual stw;
     output out=stats css(stw)=sstot uss(stw_residual)=ssres N=N;
run;
data expp;
     set stats;
     rsquared=1-(ssres/sstot);
     adjrsquared = 1-(1-rsquared)*(N-1) / (N- 4  -1);
run;
proc print data=expp;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Oct 2021 09:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/771874#M37746</guid>
      <dc:creator>ukhan</dc:creator>
      <dc:date>2021-10-04T09:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Larger 95% Confidence Limits in first round of estimation: Method: Marquardt</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772007#M37747</link>
      <description>&lt;P&gt;Can you explain why you think the CI for T is "too large"? How are you making that determination?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 20:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772007#M37747</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-10-04T20:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Larger 95% Confidence Limits in first round of estimation: Method: Marquardt</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772089#M37749</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for the comments. The 95% CI estimated for T is unrealistic as it should not be this much large. But its 95% CI reduced to the acceptable range after fixing the parameter A with 0.08.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 08:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772089#M37749</guid>
      <dc:creator>ukhan</dc:creator>
      <dc:date>2021-10-05T08:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Larger 95% Confidence Limits in first round of estimation: Method: Marquardt</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772098#M37750</link>
      <description>&lt;P&gt;I don't have your data, so it is impossible to assess whether the CI for T is too large or not.&amp;nbsp; You could use a bootstrap analysis to see if the bootstrap CI (based on percentiles) is similar to the CI you are obtaining from PROC NLIN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I look at the code, I think the following line looks suspicious:&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;if s&amp;gt;0 then stx=s**(1/(1-B));
else stx=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I don't know what this statement is trying to accomplish, but consider whether&amp;nbsp;&lt;BR /&gt;ELSE stx=.;&lt;BR /&gt;might be more appropriate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 09:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772098#M37750</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-10-05T09:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Larger 95% Confidence Limits in first round of estimation: Method: Marquardt</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772157#M37752</link>
      <description>&lt;P&gt;I used&amp;nbsp;&lt;SPAN&gt;ELSE stx=.; but got this error:&amp;nbsp; ERROR: The ELSE statement does not have a matching IF statement at line 91 column 1.&lt;BR /&gt;Dear Rick, please kindly check the below link to download the data and PRCO codes. Many thanks for the help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Data" href="https://drive.google.com/drive/folders/1nrYBtTuYrvV3Ykr9tro9FlqTyjRmkf2e?usp=sharing" target="_self"&gt;https://drive.google.com/drive/folders/1nrYBtTuYrvV3Ykr9tro9FlqTyjRmkf2e?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 13:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772157#M37752</guid>
      <dc:creator>ukhan</dc:creator>
      <dc:date>2021-10-05T13:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Larger 95% Confidence Limits in first round of estimation: Method: Marquardt</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772202#M37757</link>
      <description>&lt;P&gt;Just looking through the correlation matrix, I get the feeling that T and TU are capturing the same information, especially after A settles in during the iterations. Is it possible that the two are linearly related somehow?&amp;nbsp; Is there a possible re-parameterization or rescaling that might help?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another thing to check is whether this is method dependent.&amp;nbsp; For instance, try method=Newton.&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772202#M37757</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-10-05T15:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Larger 95% Confidence Limits in first round of estimation: Method: Marquardt</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772374#M37761</link>
      <description>&lt;P&gt;Dear Steve,&lt;BR /&gt;Thanks for the hints. Yes, the 95% CI of T and TU considerably get narrow with method=Newton. Could we further reduce the 95% CI? Many thanks for the hints.&lt;BR /&gt;Respectfully,&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 08:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772374#M37761</guid>
      <dc:creator>ukhan</dc:creator>
      <dc:date>2021-10-06T08:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Larger 95% Confidence Limits in first round of estimation: Method: Marquardt</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772407#M37762</link>
      <description>&lt;P&gt;Maybe ridging will help, but to do it requires switching to NLMIXED.&amp;nbsp; Since I don't have access to the exp dataset, I haven't gone through this for any errors or odd behavior:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlmixed data=exp technique=nrridg;
parms RLTE=0.00132 B=0.5 C=0.8 A=0.08 T=3 TU=20 s2e=0.1;
R=RLTE*predlcm**C*EXP(A*temp)*(1-EXP(T*(temp-TU)));
s=sow**(1-B)-R*(1-B)*time;
if s&amp;gt;0 then stx=s**(1/(1-B));
else stx=0;
   model stw ~ normal(stx,s2e);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I assume the variables 'sow' and 'predlcm' are in the 'exp' dataset.&amp;nbsp; What concerns me a bit about it is the units for all of these. R should have units of RLTE*predclm, so 'sow' should have units like RLTE*predclm*time.&amp;nbsp; The issue is that sow is exponentiated, and so has to accommodate that.&amp;nbsp; It looks like the definition of 'stx' handles that with the exponentiation there equal to the reciprocal of the first term in the definition of 's'.&amp;nbsp; So now we have to deal with the second term in the definition of s after exponentiation.&amp;nbsp; I don't see how to make that rather complicated expression unitless, so that the units of 'stx' aren't some horrible mixture of things.&amp;nbsp; I presume this equation is standard in the literature for the digestive physiology of fish, or you wouldn't have chosen it.&amp;nbsp; I just think some rearranging of terms or something should help with the correlation which is responsible for the extended confidence interval.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 12:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772407#M37762</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-10-06T12:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Larger 95% Confidence Limits in first round of estimation: Method: Marquardt</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772421#M37764</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Steve,&lt;BR /&gt;I used your codes, but got the following error.&lt;/P&gt;&lt;P&gt;WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue. Second-order optimality condition violated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please check this link to get exp dataset&amp;nbsp;&lt;A title="Data" href="https://drive.google.com/drive/folders/1nrYBtTuYrvV3Ykr9tro9FlqTyjRmkf2e?usp=sharing" target="_self" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/drive/folders/1nrYBtTuYrvV3Ykr9tro9FlqTyjRmkf2e?usp=sharing&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 13:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/772421#M37764</guid>
      <dc:creator>ukhan</dc:creator>
      <dc:date>2021-10-06T13:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Larger 95% Confidence Limits in first round of estimation: Method: Marquardt</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/773021#M37780</link>
      <description>Dear Steve,&lt;BR /&gt;Could you please help me in understanding why "Method: Newton" better perform than "Method: Marquardt" in my case? I would be grateful if you could briefly explain it.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Oct 2021 12:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/773021#M37780</guid>
      <dc:creator>ukhan</dc:creator>
      <dc:date>2021-10-08T12:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Larger 95% Confidence Limits in first round of estimation: Method: Marquardt</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/773414#M37801</link>
      <description>&lt;P&gt;I am going to assume you have no background in numerical analysis, and in particular,numeric minimization.. The Marquardt method can be much more sensitive to the initial conditions than the Newton method.&amp;nbsp; So what, you say?&amp;nbsp; It means that if there are multiple minima for the function in question, that your initial parameter guesses had better be close to the values at the global minimum.&amp;nbsp; If not, then you could converge to a set of values that result in a larger error term.&amp;nbsp; The other issue that Newton's method is a bit better at handling highly correlated parameters, such as those you have here.&amp;nbsp; Does that help at all?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS.&amp;nbsp; There are some reasons that other optimizers are available while Marquardt's is not for other optimization-based procedures, but that is material I have not dealt with since graduate school, so I am liable to end up with completely wrong responses. You might get better answers if you posted the question in the Mathematical Optimization forum.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 15:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Larger-95-Confidence-Limits-in-first-round-of-estimation-Method/m-p/773414#M37801</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-10-11T15:03:09Z</dc:date>
    </item>
  </channel>
</rss>

