<?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: Stepwise Model Selection for longitudinal binary data using PROc GENMOD in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911421#M359403</link>
    <description>&lt;P&gt;You should check out this article from the SAS Global Forum:&lt;/P&gt;
&lt;P&gt;chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/&lt;A href="https://support.sas.com/resources/papers/proceedings14/1822-2014.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/resources/papers/proceedings14/1822-2014.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It deals with stepwise selection using GLIMMIX. In GLIMMIX you can basically fit most of the models of GENMOD, and many more. But the syntax of GLIMMIX is different for repeated measures/longitudinal data (similar, but different enough to be confusing).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I must say: be very cautious when doing stepwise selection (using these traditional approaches). There are a lot of statistical reasons why this may not be a good idea. The newer methods in GLMSELECT, etc, are much better (but as you noticed, no way to deal with correlated data).&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 17:32:49 GMT</pubDate>
    <dc:creator>lvm</dc:creator>
    <dc:date>2024-01-12T17:32:49Z</dc:date>
    <item>
      <title>Stepwise Model Selection for longitudinal binary data using PROc GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911240#M359327</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a SAS macro to perform stepwise model selection for PROC GENMOD when the data is longitudinal (i.e. REPEATED statement in PROC GENMOD).&lt;/P&gt;&lt;P&gt;I found the below article which describes a SAS macro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have code to full macro? Or code to a similar macro doing the model selection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.pharmasug.org/proceedings/2012/SP/PharmaSUG-2012-SP09.pdf" target="_self"&gt;https://www.pharmasug.org/proceedings/2012/SP/PharmaSUG-2012-SP09.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Ali&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 07:50:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911240#M359327</guid>
      <dc:creator>AliF</dc:creator>
      <dc:date>2024-01-11T07:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Stepwise Model Selection for longitudinal binary data using PROc GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911244#M359329</link>
      <description>&lt;P&gt;Use HPGENSELECT instead !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;Home &amp;gt; Analytics &amp;gt; Statistical Procedures &amp;gt; &lt;BR /&gt;Model selection using proc genmod&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Model-selection-using-proc-genmod/td-p/124816" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Model-selection-using-proc-genmod/td-p/124816&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Home &amp;gt; Analytics &amp;gt; Statistical Procedures &amp;gt; &lt;BR /&gt;PROC GENMOD: no automatic selection method?&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-no-automatic-selection-method/td-p/25457" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-no-automatic-selection-method/td-p/25457&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 09:41:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911244#M359329</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-01-11T09:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stepwise Model Selection for longitudinal binary data using PROc GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911247#M359330</link>
      <description>&lt;P&gt;Hi Koen&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;For longitudinal binary data "REPEATED" option needs to used in PROC GENMOD in order to analyze such data.&lt;/P&gt;&lt;P&gt;I can't see the "REPEATED" option offered in&amp;nbsp;&lt;SPAN&gt;HPGENSELECT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I use&amp;nbsp;&lt;SPAN&gt;HPGENSELECT for&amp;nbsp;longitudinal data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ali&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 09:55:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911247#M359330</guid>
      <dc:creator>AliF</dc:creator>
      <dc:date>2024-01-11T09:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Stepwise Model Selection for longitudinal binary data using PROc GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911252#M359331</link>
      <description>&lt;P&gt;You are right:&lt;BR /&gt;PROC HPGENSELECT does not support a REPEATED statement.&lt;/P&gt;
&lt;P&gt;Sorry I had overlooked that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have just looked into the GEE procedure. That's&amp;nbsp;the generalized estimating equations (GEE) approach (Liang and Zeger&lt;BR /&gt;1986), which extends the generalized linear model to handle longitudinal data.&lt;BR /&gt;But also there I cannot see effect selection and model selection capabilities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC GLIMMIX is also not offering this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;can help you out?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NB: in my previous post , I should also have given this example/article as well:&lt;BR /&gt;Home &amp;gt; Programming &amp;gt; Code examples &lt;BR /&gt;High-Performance Variable Selection for Generalized Linear Models: PROC HPGENSELECT&lt;BR /&gt;Started 3 weeks ago | Modified 3 weeks ago&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Code-Examples/High-Performance-Variable-Selection-for-Generalized-Linear/ta-p/908436" target="_blank"&gt;https://communities.sas.com/t5/SAS-Code-Examples/High-Performance-Variable-Selection-for-Generalized-Linear/ta-p/908436&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 11:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911252#M359331</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-01-11T11:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Stepwise Model Selection for longitudinal binary data using PROc GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911334#M359375</link>
      <description>In PROC MIXED ,you could use SOLUTION option to check which fixed effect is significant .&lt;BR /&gt;model y=x1 x2 ..../ solution ;&lt;BR /&gt;&lt;BR /&gt;use COVTEST option to check which random effect is significant.&lt;BR /&gt;proc mixed ....... covtest;&lt;BR /&gt;&lt;BR /&gt;And PROC GLIMMIX have the similliar options.&lt;BR /&gt;&lt;BR /&gt;In PROC GENMOD , you could check ASSCEE statement, but I am not sure if that is what you are looking for.&lt;BR /&gt;&lt;BR /&gt;Anyway,  &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;   &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13758"&gt;@lvm&lt;/a&gt;  maybe have better choice .</description>
      <pubDate>Fri, 12 Jan 2024 02:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911334#M359375</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-01-12T02:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Stepwise Model Selection for longitudinal binary data using PROc GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911370#M359390</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;In PROC GENMOD , you could check ASSCEE statement, but I am not sure if that is what you are looking for.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;refers to&amp;nbsp;&lt;SPAN&gt;the &lt;STRONG&gt;ASSESS&lt;/STRONG&gt;|ASSESSMENT statement.&lt;BR /&gt;It's for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Assessment of Models Based on Aggregates of Residuals&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp; , it's a nice discovery ... I have never used that statement (and never noticed its existence).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 10:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911370#M359390</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-01-12T10:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Stepwise Model Selection for longitudinal binary data using PROc GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911421#M359403</link>
      <description>&lt;P&gt;You should check out this article from the SAS Global Forum:&lt;/P&gt;
&lt;P&gt;chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/&lt;A href="https://support.sas.com/resources/papers/proceedings14/1822-2014.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/resources/papers/proceedings14/1822-2014.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It deals with stepwise selection using GLIMMIX. In GLIMMIX you can basically fit most of the models of GENMOD, and many more. But the syntax of GLIMMIX is different for repeated measures/longitudinal data (similar, but different enough to be confusing).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I must say: be very cautious when doing stepwise selection (using these traditional approaches). There are a lot of statistical reasons why this may not be a good idea. The newer methods in GLMSELECT, etc, are much better (but as you noticed, no way to deal with correlated data).&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 17:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911421#M359403</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2024-01-12T17:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Stepwise Model Selection for longitudinal binary data using PROc GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911535#M359438</link>
      <description>&lt;P&gt;Thank you all for providing responses to my question. Much appreciated.&lt;BR /&gt;I will look into&amp;nbsp;&lt;A title="A Stepwise Algorithm for Generalized Linear Mixed Models" href="https://support.sas.com/resources/papers/proceedings14/1822-2014.pdf" target="_self"&gt;https://support.sas.com/resources/papers/proceedings14/1822-2014.pdf&lt;/A&gt;&amp;nbsp;and see how to modify for my need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also came across this article which deals with Backward Selection method, and I also want to modify this macros for Forward/Stepwise Selection method:&lt;BR /&gt;&lt;A title="Using Macro and ODS to Overcome Limitations of SAS® Procedures" href="https://www.lexjansen.com/nesug/nesug07/cc/cc26.pdf" target="_self"&gt;https://www.lexjansen.com/nesug/nesug07/cc/cc26.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Ali&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 22:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stepwise-Model-Selection-for-longitudinal-binary-data-using-PROc/m-p/911535#M359438</guid>
      <dc:creator>AliF</dc:creator>
      <dc:date>2024-01-14T22:55:18Z</dc:date>
    </item>
  </channel>
</rss>

