<?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 3-level GENMOD Exchangeable working correlations in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/3-level-GENMOD-Exchangeable-working-correlations/m-p/606692#M29442</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to estimate the exchangeable working correlation for classroom and school clustering in a 3-level model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can estimate the ICC using GLIMMIX, however, I am wondering if it is possible to estimate a 3-level model using GENMOD as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, my two level model is producing an exchnageable working correlation with the folloiwng code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod daya=sel;&lt;/P&gt;&lt;P&gt;class schoolid sel;&lt;/P&gt;&lt;P&gt;model sel (ref=first)=/D=B link=logit;&lt;/P&gt;&lt;P&gt;repeated subject schoolid/type=exch covb;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to add in a third level, the following code works but only provides one exchangeable working correlation. Is there a way to separate the class from the school exchangeable working correlation in GENMOD? If so, how do I fix the following code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod daya=sel;&lt;/P&gt;&lt;P&gt;class schoolid classid sel;&lt;/P&gt;&lt;P&gt;model sel (ref=first)=/D=B link=logit;&lt;/P&gt;&lt;P&gt;repeated subject schoolid/type=exch covb;&lt;/P&gt;&lt;P&gt;repeated subject classid(schoolids)/type=exch covb;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Nov 2019 17:46:36 GMT</pubDate>
    <dc:creator>halladje</dc:creator>
    <dc:date>2019-11-23T17:46:36Z</dc:date>
    <item>
      <title>3-level GENMOD Exchangeable working correlations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/3-level-GENMOD-Exchangeable-working-correlations/m-p/606692#M29442</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to estimate the exchangeable working correlation for classroom and school clustering in a 3-level model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can estimate the ICC using GLIMMIX, however, I am wondering if it is possible to estimate a 3-level model using GENMOD as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, my two level model is producing an exchnageable working correlation with the folloiwng code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod daya=sel;&lt;/P&gt;&lt;P&gt;class schoolid sel;&lt;/P&gt;&lt;P&gt;model sel (ref=first)=/D=B link=logit;&lt;/P&gt;&lt;P&gt;repeated subject schoolid/type=exch covb;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to add in a third level, the following code works but only provides one exchangeable working correlation. Is there a way to separate the class from the school exchangeable working correlation in GENMOD? If so, how do I fix the following code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod daya=sel;&lt;/P&gt;&lt;P&gt;class schoolid classid sel;&lt;/P&gt;&lt;P&gt;model sel (ref=first)=/D=B link=logit;&lt;/P&gt;&lt;P&gt;repeated subject schoolid/type=exch covb;&lt;/P&gt;&lt;P&gt;repeated subject classid(schoolids)/type=exch covb;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 17:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/3-level-GENMOD-Exchangeable-working-correlations/m-p/606692#M29442</guid>
      <dc:creator>halladje</dc:creator>
      <dc:date>2019-11-23T17:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: 3-level GENMOD Exchangeable working correlations</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/3-level-GENMOD-Exchangeable-working-correlations/m-p/607100#M29465</link>
      <description>&lt;P&gt;GENMOD does not estimate multilevel models. Only one REPEATED statement is allowed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 19:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/3-level-GENMOD-Exchangeable-working-correlations/m-p/607100#M29465</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-11-25T19:37:54Z</dc:date>
    </item>
  </channel>
</rss>

