<?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: multiple random factors in proc nlmixed - SAS 9.3 in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-random-factors-in-proc-nlmixed-SAS-9-3/m-p/364301#M19114</link>
    <description>&lt;P&gt;Support for multiple RANDOM statements was added to PROC NLMIXED In SAS/STAT 13.2, which was shipped with SAS 9.4m2.&lt;/P&gt;
&lt;P&gt;SAS 9.3 (from 2011) did not support multiple RANDOM statements.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To see examples and discussion, read Kurada (2016) &lt;A href="https://support.sas.com/resources/papers/proceedings16/SAS4720-2016.pdf" target="_self"&gt;"Fitting Multilevel Hierarchical Mixed Models Using PROC NLMIXED"&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jun 2017 15:36:54 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-06-05T15:36:54Z</dc:date>
    <item>
      <title>multiple random factors in proc nlmixed - SAS 9.3</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-random-factors-in-proc-nlmixed-SAS-9-3/m-p/364059#M19111</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I've seen a response to this question posted by Steve Dunham but there were some aspects that were unclear and in addition I was hoping that Steve or someone could make reference to the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*nlmixed model including random factor and zip;&lt;/P&gt;&lt;P&gt;*in reality I have two random factors - bin, which is an indicator of the longitudinal nature of the data (nested under subject ID)&lt;/P&gt;&lt;P&gt;*subject id (ptid) which is the arbitrary identifier within the study;&lt;/P&gt;&lt;P&gt;proc nlmixed data=foo.nlmixed_data;&lt;/P&gt;&lt;P&gt;parms b0=1.35 b1=-.023 b2=-.2466 b3=-.0115 a0=-.2027 a1=.0606 a2=.2426 a3=.0127 sigma2=.0811;&lt;/P&gt;&lt;P&gt;logit0 = a0 + a1*studygroup + a2*treatst + a3*age;&lt;/P&gt;&lt;P&gt;prob0 = 1 / (1 + exp(-logit0));&lt;/P&gt;&lt;P&gt;mu = exp(b0 + u + b1*studygroup + b2*treatst + b3*age);&lt;/P&gt;&lt;P&gt;if count = 0 then&amp;nbsp;&amp;nbsp; *likelihood if no counts - zip;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ll = log(prob0 + (1 - prob0)*exp(-mu));&lt;/P&gt;&lt;P&gt;else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *count &amp;gt; 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ll = count*log(mu) + log(1 - prob0) -mu -lgamma(count + 1);&lt;/P&gt;&lt;P&gt;model&amp;nbsp; count&amp;nbsp;~ general(ll);&lt;/P&gt;&lt;P&gt;* here's where I get lost;&lt;/P&gt;&lt;P&gt;*for one random factor the random stmt is ;&lt;/P&gt;&lt;P&gt;random u ~ normal(0, sigma2) subject = bin;&lt;/P&gt;&lt;P&gt;* but for two its more complex;&lt;/P&gt;&lt;P&gt;*bins are nestedwithin subject;&lt;/P&gt;&lt;P&gt;*random u v ~ normal([0,0] [subject_sigma2, cov, bin_sigma2]) subject = bin; *something like this;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really help somebody can help fill in the missing pieces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;OldSASGuy100&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2017 00:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-random-factors-in-proc-nlmixed-SAS-9-3/m-p/364059#M19111</guid>
      <dc:creator>OldSASGuy100</dc:creator>
      <dc:date>2017-06-04T00:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: multiple random factors in proc nlmixed - SAS 9.3</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-random-factors-in-proc-nlmixed-SAS-9-3/m-p/364301#M19114</link>
      <description>&lt;P&gt;Support for multiple RANDOM statements was added to PROC NLMIXED In SAS/STAT 13.2, which was shipped with SAS 9.4m2.&lt;/P&gt;
&lt;P&gt;SAS 9.3 (from 2011) did not support multiple RANDOM statements.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To see examples and discussion, read Kurada (2016) &lt;A href="https://support.sas.com/resources/papers/proceedings16/SAS4720-2016.pdf" target="_self"&gt;"Fitting Multilevel Hierarchical Mixed Models Using PROC NLMIXED"&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 15:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-random-factors-in-proc-nlmixed-SAS-9-3/m-p/364301#M19114</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-06-05T15:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: multiple random factors in proc nlmixed - SAS 9.3</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multiple-random-factors-in-proc-nlmixed-SAS-9-3/m-p/364311#M19118</link>
      <description>unfortunately, I don't have access to SAS 13.2, I only have 9.3.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Mon, 05 Jun 2017 16:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multiple-random-factors-in-proc-nlmixed-SAS-9-3/m-p/364311#M19118</guid>
      <dc:creator>OldSASGuy100</dc:creator>
      <dc:date>2017-06-05T16:44:26Z</dc:date>
    </item>
  </channel>
</rss>

