<?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 How to do automated variables selection when accounting for clustering effect in SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-automated-variables-selection-when-accounting-for/m-p/476976#M24828</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am doing an analysis to look at the association between a number of potential risk factors (age, gender, education, marital status, wealth index etc.) and risk of developing diabetes. Normally, logistic regression using "Proc logistic" should be fine for this analysis. But in my study, we used clustering sampling method (30 clusters in total)&amp;nbsp;to enroll study participants. Therefore, I used " Proc glimmix" (SAS 9.4)instead to account for clustering effect. However, it seems that "Proc glimmix" cannot do automated variable selection like "Proc logistic" does. Does anyone know if there is a way to do automated variable selection while modelling clustering effect as well ?&lt;/P&gt;&lt;P&gt;Here are the codes:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;glimmix&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=diab &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;NOCLPRINT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; country2(ref=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'Pk'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)clu_num fam_num2 gender edu2g mar2g ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; diab(ref=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)= country2 age_y9 gender edu2g mar2g wic/&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;solution&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Link&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=logit &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;dist&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=binary &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;oddsratio&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; (label unit age_y9=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; UNIT WIC=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;21&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;random&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; int /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;sub&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=clu_num (country2);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;random&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; int /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;sub&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=fam_num2(clu_num country2) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;type&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;vc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feng Liang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 02:38:47 GMT</pubDate>
    <dc:creator>Lao_feng</dc:creator>
    <dc:date>2018-07-11T02:38:47Z</dc:date>
    <item>
      <title>How to do automated variables selection when accounting for clustering effect in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-automated-variables-selection-when-accounting-for/m-p/476976#M24828</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am doing an analysis to look at the association between a number of potential risk factors (age, gender, education, marital status, wealth index etc.) and risk of developing diabetes. Normally, logistic regression using "Proc logistic" should be fine for this analysis. But in my study, we used clustering sampling method (30 clusters in total)&amp;nbsp;to enroll study participants. Therefore, I used " Proc glimmix" (SAS 9.4)instead to account for clustering effect. However, it seems that "Proc glimmix" cannot do automated variable selection like "Proc logistic" does. Does anyone know if there is a way to do automated variable selection while modelling clustering effect as well ?&lt;/P&gt;&lt;P&gt;Here are the codes:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;glimmix&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=diab &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;NOCLPRINT&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; country2(ref=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'Pk'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)clu_num fam_num2 gender edu2g mar2g ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; diab(ref=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)= country2 age_y9 gender edu2g mar2g wic/&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;solution&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;Link&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=logit &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;dist&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=binary &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;oddsratio&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; (label unit age_y9=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; UNIT WIC=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;21&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;random&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; int /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;sub&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=clu_num (country2);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;random&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; int /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;sub&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=fam_num2(clu_num country2) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;type&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;vc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feng Liang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 02:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-automated-variables-selection-when-accounting-for/m-p/476976#M24828</guid>
      <dc:creator>Lao_feng</dc:creator>
      <dc:date>2018-07-11T02:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to do automated variables selection when accounting for clustering effect in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-automated-variables-selection-when-accounting-for/m-p/476977#M24829</link>
      <description>&lt;P&gt;" information criteria can be used to select a best fitting covariance structure" &lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/proc-glimmix-selection-stepwise-or-backwards/td-p/172976" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/proc-glimmix-selection-stepwise-or-backwards/td-p/172976&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;automated is maybe not the best approach anywy, variable selection should be informed by clinical reasong and not entirely data-dependent, just my opinion&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 03:01:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-automated-variables-selection-when-accounting-for/m-p/476977#M24829</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-07-11T03:01:16Z</dc:date>
    </item>
  </channel>
</rss>

