<?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 Genmod  / Repeated statement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Repeated-statement/m-p/810645#M39919</link>
    <description>&lt;P&gt;To answer this question, you only need to decide which observations are considered correlated together. If all observations within a subject are considered correlated and observations between subjects are considered independent, then specify the subject identifier in SUBJECT=. You don't need to consider the predictors to determine what to specify in SUBJECT=.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 13:54:08 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2022-04-29T13:54:08Z</dc:date>
    <item>
      <title>Proc Genmod  / Repeated statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Repeated-statement/m-p/810530#M39913</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a bit confused about the variable to use with the repeated statement. My analysis has a binary outcome. Some of the variables included in the model were measured at the zip code level, meaning patients in the same zipcodes would have the same values for the variables I intend to include in the model. I am confused if the repeated statement should be zipcode or&amp;nbsp; person_id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc genmod data=&amp;nbsp; y descending ;&lt;/P&gt;&lt;P&gt;class zipcode gender (ref="0") race (ref="0") cgd (ref="0") cbf (ref="0") cdd (ref="0") csd (ref="0") obesepat (ref="0") hpsa (ref="0") LT_100FPL_F4 (ref="0") LT_138FPL_F4 (ref="0")/ param=glm;&lt;/P&gt;&lt;P&gt;model&amp;nbsp; b = age gender race cgd cbf obesepat cdd csd bachdegree hpsa LT_100FPL_F4 LT_138FPL_F4 / dist=bin link=logit;&lt;/P&gt;&lt;P&gt;repeated subject=zipcode/ type=cs;&lt;/P&gt;&lt;P&gt;lsmeans gender race chf cvd obesepat cad ckd hpsa LT_100FPL_F4 LT_138FPL_F4/diff oddsratio cl;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data=&amp;nbsp; y descending ;&lt;/P&gt;&lt;P&gt;class person_id gender (ref="0") race (ref="0") cgd (ref="0") cbf (ref="0") cdd (ref="0") csd (ref="0") obesepat (ref="0") hpsa (ref="0") LT_100FPL_F4 (ref="0") LT_138FPL_F4 (ref="0")/ param=glm;&lt;/P&gt;&lt;P&gt;model&amp;nbsp; b = age gender race cgd cbf obesepat cdd csd bachdegree hpsa LT_100FPL_F4 LT_138FPL_F4 / dist=bin link=logit;&lt;/P&gt;&lt;P&gt;repeated subject= person_id/ type=cs;&lt;/P&gt;&lt;P&gt;lsmeans gender race chf cvd obesepat cad ckd hpsa LT_100FPL_F4 LT_138FPL_F4/diff oddsratio cl;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 04:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Repeated-statement/m-p/810530#M39913</guid>
      <dc:creator>derbygun</dc:creator>
      <dc:date>2022-04-29T04:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod  / Repeated statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Repeated-statement/m-p/810645#M39919</link>
      <description>&lt;P&gt;To answer this question, you only need to decide which observations are considered correlated together. If all observations within a subject are considered correlated and observations between subjects are considered independent, then specify the subject identifier in SUBJECT=. You don't need to consider the predictors to determine what to specify in SUBJECT=.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 13:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Repeated-statement/m-p/810645#M39919</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-04-29T13:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Genmod  / Repeated statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Repeated-statement/m-p/811773#M40013</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/396051"&gt;@derbygun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To elaborate on the point about correlation from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;: do you have multiple (repeated) measurements on each&amp;nbsp;&lt;SPAN&gt;person_id? If not, there's nothing correlated to model, so we'd omit person_id from the model.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Since observations within zip codes are presumably correlated, you could use model #1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.sas.com/kb/24/200.html" target="_self"&gt;More details on Proc Genmod Repeated parameterization here&lt;/A&gt;. Reading this from your example, person_id would be equivalent to patient and zipcode would equate to physician.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I favor Proc GLIMMIX because it's intuitive to input natural hierarchies, for example:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;random person_id / subject=zipcode residual ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;and &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_intromix_sect013.htm" target="_self"&gt;it uses likelihood techniques&lt;/A&gt; which some practitioners hold to be preferable to moment specifications like those in Genmod.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 22:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Genmod-Repeated-statement/m-p/811773#M40013</guid>
      <dc:creator>jozgot</dc:creator>
      <dc:date>2022-05-05T22:54:01Z</dc:date>
    </item>
  </channel>
</rss>

