<?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: NLMIXED procedure in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141532#M7370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc nlmixed data=mydata ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; parms amu=72, bmu=2.5, kmu=0.15,asigma=0.2,bsigma=0.02,ksigma=0.02,difa=0,difb=0,difk=0,error=0.1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; bounds amu&amp;gt;0,bmu&amp;gt;0,kmu&amp;gt;0,error&amp;gt;0,asigma&amp;gt;0,bsigma&amp;gt;0,ksigma&amp;gt;0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mean=a*(1- (b*exp(-k*age)));&lt;/P&gt;&lt;P&gt;&amp;nbsp; model weight~normal(mean,error);&lt;/P&gt;&lt;P&gt;&amp;nbsp; random a b k ~ normal ([amu+sex*difa,bmu+sex*difb,kmu+sex*difk],[asigma,0,bsigma,0,0,ksigma]) subject=id;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I assume that a,b and k is normal distrubuted with same variance, and I model it so that the difference in the meanvalue is a parameter to be estimated. Then you get in the output window the statistical test of whether the differences (difa,difb and difk) is zero. I recoded the sex-variable to be 0 or 1 instead of F or M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2014 14:13:24 GMT</pubDate>
    <dc:creator>JacobSimonsen</dc:creator>
    <dc:date>2014-12-09T14:13:24Z</dc:date>
    <item>
      <title>NLMIXED procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141531#M7369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I have a data set like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;ID Sex Age Weight&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp; 18&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 54&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to estimate a Brody growth function parameters (a,b and k) using nlmixed procedure;&lt;/P&gt;&lt;P&gt;How can i estimate Brody parameters for each sex, and how can i found significantly difference or non-significantly between them for each of the parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The Brody function is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000000;"&gt;y=a[1- {b*exp(-k*t)}]+e&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;y=observation (Weight)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;exp=&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, san-serif; background-color: #ffffff;"&gt;natural logarithms&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, san-serif; background-color: #ffffff;"&gt;t=Age&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, san-serif; background-color: #ffffff;"&gt;e= Residual&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used SAS9.1.3., &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;could anyone please help me with that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks alot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Zana&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 17:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141531#M7369</guid>
      <dc:creator>zana</dc:creator>
      <dc:date>2014-12-08T17:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: NLMIXED procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141532#M7370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc nlmixed data=mydata ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; parms amu=72, bmu=2.5, kmu=0.15,asigma=0.2,bsigma=0.02,ksigma=0.02,difa=0,difb=0,difk=0,error=0.1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; bounds amu&amp;gt;0,bmu&amp;gt;0,kmu&amp;gt;0,error&amp;gt;0,asigma&amp;gt;0,bsigma&amp;gt;0,ksigma&amp;gt;0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mean=a*(1- (b*exp(-k*age)));&lt;/P&gt;&lt;P&gt;&amp;nbsp; model weight~normal(mean,error);&lt;/P&gt;&lt;P&gt;&amp;nbsp; random a b k ~ normal ([amu+sex*difa,bmu+sex*difb,kmu+sex*difk],[asigma,0,bsigma,0,0,ksigma]) subject=id;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I assume that a,b and k is normal distrubuted with same variance, and I model it so that the difference in the meanvalue is a parameter to be estimated. Then you get in the output window the statistical test of whether the differences (difa,difb and difk) is zero. I recoded the sex-variable to be 0 or 1 instead of F or M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 14:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141532#M7370</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2014-12-09T14:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: NLMIXED procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141533#M7371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jac, but this program have an error so i can't found any output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Quadrature accuracy of 0.000100 could not be achieved with 31 points.&amp;nbsp; The achieved accuracy was 1.000000.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE NLMIXED used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.79 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.79 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the other hand, i know about parameters (a,b &amp;amp; k). I expect nearly a=40, b=0.5 and k=0.01. So, i think they can't have the same variance.&lt;/P&gt;&lt;P&gt;Thanks for your kind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 23:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141533#M7371</guid>
      <dc:creator>zana</dc:creator>
      <dc:date>2014-12-09T23:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: NLMIXED procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141534#M7372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try make a fixed-effect version of the model in order find good starting values for the meanvalues in the random-effect model. That may help you solve the convergence problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the suggested program to Work, but that was on a simulated dataset. I therefore knew some good startingvalues for the variance-parameters. But these values may not Work good for your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 08:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141534#M7372</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2014-12-10T08:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: NLMIXED procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141535#M7373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jacob, thank you so much. Please see my attached data file, and let me i have your idea about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tanks for your kind.&lt;/P&gt;&lt;P&gt;Zana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 09:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141535#M7373</guid>
      <dc:creator>zana</dc:creator>
      <dc:date>2014-12-10T09:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: NLMIXED procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141536#M7374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I couldn't get it to converge either when I used your data. I suspect that the parameters are too Associated with each other. When I only had "a" as a mixed effect then I could get it to converge.&lt;/P&gt;&lt;P&gt;Your were right that the variances are not the same for the three parameters - that was also not what I meant, I was just very unprecise. I meant equal variance across gender.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 17:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141536#M7374</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2014-12-10T17:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: NLMIXED procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141537#M7375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing that often helps with non-convergence is a reparameterization or a rescaling of the variables. With the initial values of a and k differing by 4 orders of magnitude, and initial estimates of variance for the parameters being at least that far off, consider rescaling Age as Age/100, and increasing the initial value of k to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, consider ridging.&amp;nbsp; Rather than the default quasi-Newton optimizer, consider using TECH=NRRIDG in the PROC NLMIXED statement.&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 19:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-procedure/m-p/141537#M7375</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-12-11T19:54:47Z</dc:date>
    </item>
  </channel>
</rss>

