<?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: alternating logistic regression with cluster analysis in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966983#M376250</link>
    <description>Sorry. I don't understand 'what missing in REPEATED statement' ?&lt;BR /&gt;I am not expert about ALR.&lt;BR /&gt;Maybe &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt; could give you some contructive suggestion.</description>
    <pubDate>Tue, 20 May 2025 08:17:06 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2025-05-20T08:17:06Z</dc:date>
    <item>
      <title>alternating logistic regression with cluster analysis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966683#M376201</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am working on an alternative logistic regression model with repeated measures&lt;BR /&gt;The drug is the unit of analysis, and there are TWO levels of clustering—within patient, and patient within MD&lt;/P&gt;&lt;P&gt;My dataset looks like this (My dataset contains approximately 15000 rows)&lt;BR /&gt;data drugs;&lt;BR /&gt;input patient MD Gender Age drug $ indication outcome;&lt;BR /&gt;datalines;&lt;BR /&gt;1 1 2 54 a 1 1&lt;BR /&gt;1 1 2 54 b 1 1&lt;BR /&gt;1 1 2 54 c 0 0&lt;BR /&gt;2 4 1 41 a 1 0&lt;BR /&gt;2 4 1 41 c 1 0&lt;BR /&gt;2 4 1 41 e 1 1&lt;BR /&gt;3 1 1 24 h 0 0&lt;BR /&gt;4 5 2 29 c 1 0&lt;BR /&gt;5 1 2 72 a 1 1&lt;BR /&gt;5 1 2 72 a 0 1&lt;BR /&gt;6 2 2 72 i 0 1&lt;BR /&gt;6 2 2 72 b 0 0&lt;BR /&gt;7 1 1 36 a 0 0&lt;BR /&gt;8 3 1 25 a 0 1&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC GENMOD DATA= drugs;&lt;BR /&gt;CLASS MD PATIENT gender(ref="1") indication(ref="1");&lt;BR /&gt;MODEL outcome (event='1')= gender indication age / DIST=BIN ;&lt;BR /&gt;REPEATED SUBJECT= PATIENT / TYPE=EXCH ;&lt;BR /&gt;RUN ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is wrong with my model?&lt;/P&gt;&lt;P&gt;Thank you very much for your help&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 14:18:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966683#M376201</guid>
      <dc:creator>Teresa12</dc:creator>
      <dc:date>2025-05-16T14:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: alternating logistic regression with cluster analysis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966726#M376205</link>
      <description>&lt;P&gt;Can you describe in a bit more detail what the research question the analysis is supposed to answer?&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 19:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966726#M376205</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-05-16T19:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: alternating logistic regression with cluster analysis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966751#M376212</link>
      <description>&lt;P&gt;According to the example of GEE or GENMOD, you need option logor= to do ALR model.&lt;/P&gt;
&lt;PRE&gt;PROC GENMOD DATA= drugs;
CLASS MD PATIENT gender(ref="1") indication(ref="1");
MODEL outcome (event='1')= gender indication age / DIST=BIN ;
REPEATED SUBJECT= PATIENT / &lt;STRONG&gt;logor=fullclust&lt;/STRONG&gt; ;
RUN ;&lt;/PRE&gt;
&lt;P&gt;And to build a GEE model better to use the newer PROC GEE.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;PROC GEE&lt;/STRONG&gt; DATA= drugs;
CLASS PATIENT gender(ref="1") indication(ref="1");
MODEL outcome (event='1')= gender indication age / DIST=BIN ;
REPEATED SUBJECT= PATIENT / logor=fullclust ;
RUN ;&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 May 2025 02:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966751#M376212</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-17T02:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: alternating logistic regression with cluster analysis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966932#M376237</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;I am working on evaluating whether certain drugs are prescribed correctly, which will be my outcome measure. If the prescription complies with the recommended dosage, the outcome will be assigned a value of 1; if not, it will be assigned a value of 0.&lt;/P&gt;&lt;P&gt;Please note that a patient may be prescribed more than one medication, and around 15000 patients are treated by approximately 150 physicians.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 11:33:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966932#M376237</guid>
      <dc:creator>Teresa12</dc:creator>
      <dc:date>2025-05-19T11:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: alternating logistic regression with cluster analysis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966935#M376238</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Thank you for your response. However, in the case of GEE, why is the physician missing in the repeated subject?&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 11:34:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966935#M376238</guid>
      <dc:creator>Teresa12</dc:creator>
      <dc:date>2025-05-19T11:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: alternating logistic regression with cluster analysis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966983#M376250</link>
      <description>Sorry. I don't understand 'what missing in REPEATED statement' ?&lt;BR /&gt;I am not expert about ALR.&lt;BR /&gt;Maybe &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt; could give you some contructive suggestion.</description>
      <pubDate>Tue, 20 May 2025 08:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/966983#M376250</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-20T08:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: alternating logistic regression with cluster analysis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/967033#M376263</link>
      <description>&lt;P&gt;Questions like this that are about statistical methods or statistical procedures will be addressed faster and get more attention if you post them in the Analytics&amp;gt;Statistical Procedures community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, note that the GEE method is robust to not specifying exactly the right clustering structure, so it is not unreasonable the use the GEE model from the code you showed in your first post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if you particularly want to use an ALR model to estimate log odds ratios, and if your data consists of patients clustered within physicians and with multiple observations from patients, then you need to change your REPEATED statement options. Instead of TYPE=EXCH, which requests a GEE model, specify SUBJECT=MD (I assume that MD is your physician indicator) then specify LOGOR=NEST1 and SUBCLUSTER=PATIENT:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   repeated  subject=md / logor=nest1 subcluster=patient;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;While LOGOR=NESTK (with SUBCLUSTER=PATIENT) or FULLCLUST are other possible structures, they are probably not feasible since you indicate that, on average, there are 100 patients per physician. These structures would probably require the estimation far too many log odds ratios, and in any case would probably not be useful.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 15:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/967033#M376263</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-05-20T15:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: alternating logistic regression with cluster analysis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/967038#M376266</link>
      <description>&lt;P&gt;Thank you for your time and assistance; you helped me understand!&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 16:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/967038#M376266</guid>
      <dc:creator>Teresa12</dc:creator>
      <dc:date>2025-05-20T16:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: alternating logistic regression with cluster analysis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/967039#M376267</link>
      <description>My previous suggestion using SUBJECT=MD, LOGOR=NEST1, and SUBCLUSTER=PATIENT will give you two log odds ratios - one for any pair of responses within a patient and one for any pair of responses from different patients. That uses all the responses from all patients in a physician as a cluster. Another possible analysis is using SUBJECT=PATIENT(MD) and LOGOR=LOGORVAR(MD). This treats all responses from each distinct patient as a cluster and estimates a log odds ratio for each physician essentially pooling across all his/her patients.</description>
      <pubDate>Tue, 20 May 2025 16:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alternating-logistic-regression-with-cluster-analysis/m-p/967039#M376267</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-05-20T16:18:25Z</dc:date>
    </item>
  </channel>
</rss>

