Hello,
Can one use the ‘keep’ statement to select variables of interest from a survey data (particularly BRFSS data) into a subset dataset?
The following is my SAS code.
Thank you
Data BRFSS2018b3;
Set BRFSS2018b;
SEX=SEX1;
keep IYEAR SEQNO _AGE80 _STSTR _psu _LLCPWT MEDCOST HLTHPLN1 EMPLOY1 INCOME2 _EDUCAG EMPLOY1 _RACE SEX;
;RUN;
Yes.
Basic response would be "try it an see".
Thank you so much for your prompt response.
My main concern was about the weights. So the weights are not affected as long as I am not creating a subset within a variable, right?
Thank you
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.