BookmarkSubscribeRSS Feed
sdwhite1989
Calcite | Level 5

Hello,

 

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 I have to correct my MODEL statement to contain all variables I'm controlling for. My question is what else goes in the CLASS statement? Does each categorical variable need to be listed in the CLASS statement? Below is my code

 

*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;

 

 

1 REPLY 1
ballardw
Super User

That would be best practice.

 

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.

 

You may be adding an artifact on your Subgroup and Missteeth variables if the original variables are missing.

Better would be:

If not missing(_RFSMOK3 ) then subgroup = (_RFSMOK3 =1);

 

if not missing(RMVTETH3) then MISSTEETH=0;

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1259 views
  • 0 likes
  • 2 in conversation