<?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 PLEASE HELP: Proc surveylogistic using BRFSS data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PLEASE-HELP-Proc-surveylogistic-using-BRFSS-data/m-p/260120#M57513</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to analyze data from the Behavioral Risk Factor Surveillance System (BRFSS) and having trouble with my proc surveylogistic. My table is title Adjusted Odds Ratio (AOR) and the 95% confidence intervals according to tooth loss for the variables in the final regression analysis. I know&amp;nbsp;I have to correct my&amp;nbsp;MODEL statement to&amp;nbsp;contain all variables&amp;nbsp;I'm controlling for. My question is what else goes in the CLASS statement? Does each&amp;nbsp;categorical variable need to be listed in the CLASS statement? Below is my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*proc surveylogistic;

data Mylib.newbrfss_subgroup;
set Mylib.newbrfss_1;
subgroup=0;
if _RFSMOK3 =1 then subgroup =1;

MISSTEETH=0;
if (RMVTETH3=1 or RMVTETH3=2 or RMVTETH3=3 )then MISSTEETH=1; 
if RMVTETH3=8 then MISSTEETH = 2;

RUN; 


proc surveylogistic data = Mylib.newbrfss_subgroup;
Class sex (ref='2')/param=ref;
Domain subgroup;
Strata _Ststr;
Cluster _Psu;
Weight _LLCPWT;
model MISSTEETH (event='1')= _RFSMOK3 sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2016 14:36:47 GMT</pubDate>
    <dc:creator>sdwhite1989</dc:creator>
    <dc:date>2016-03-30T14:36:47Z</dc:date>
    <item>
      <title>PLEASE HELP: Proc surveylogistic using BRFSS data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PLEASE-HELP-Proc-surveylogistic-using-BRFSS-data/m-p/260120#M57513</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to analyze data from the Behavioral Risk Factor Surveillance System (BRFSS) and having trouble with my proc surveylogistic. My table is title Adjusted Odds Ratio (AOR) and the 95% confidence intervals according to tooth loss for the variables in the final regression analysis. I know&amp;nbsp;I have to correct my&amp;nbsp;MODEL statement to&amp;nbsp;contain all variables&amp;nbsp;I'm controlling for. My question is what else goes in the CLASS statement? Does each&amp;nbsp;categorical variable need to be listed in the CLASS statement? Below is my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*proc surveylogistic;

data Mylib.newbrfss_subgroup;
set Mylib.newbrfss_1;
subgroup=0;
if _RFSMOK3 =1 then subgroup =1;

MISSTEETH=0;
if (RMVTETH3=1 or RMVTETH3=2 or RMVTETH3=3 )then MISSTEETH=1; 
if RMVTETH3=8 then MISSTEETH = 2;

RUN; 


proc surveylogistic data = Mylib.newbrfss_subgroup;
Class sex (ref='2')/param=ref;
Domain subgroup;
Strata _Ststr;
Cluster _Psu;
Weight _LLCPWT;
model MISSTEETH (event='1')= _RFSMOK3 sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 14:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PLEASE-HELP-Proc-surveylogistic-using-BRFSS-data/m-p/260120#M57513</guid>
      <dc:creator>sdwhite1989</dc:creator>
      <dc:date>2016-03-30T14:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: PLEASE HELP: Proc surveylogistic using BRFSS data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PLEASE-HELP-Proc-surveylogistic-using-BRFSS-data/m-p/260126#M57514</link>
      <description>&lt;P&gt;That would be best practice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also want to include the option NOMCAR on the Proc statement. Due to skip patterns and other issues with BRFSS data is not actually always missing completely at random. The option is unlikely to make big differences but you should be aware of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may be adding an artifact on your Subgroup and Missteeth variables if the original variables are missing.&lt;/P&gt;
&lt;P&gt;Better would be:&lt;/P&gt;
&lt;P&gt;If not missing(_RFSMOK3 ) then subgroup = (_RFSMOK3 =1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if not missing(RMVTETH3) then MISSTEETH&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 14:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PLEASE-HELP-Proc-surveylogistic-using-BRFSS-data/m-p/260126#M57514</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-30T14:54:08Z</dc:date>
    </item>
  </channel>
</rss>

