Question: Use SAS OnDemand to analyze data from the public use dataset stated in your approved original research question.Submit the SAS Code, Log & Results*Objectives and Research question:...

1 answer below »
See the attached files for question and data set.


Question: Use SAS OnDemand to analyze data from the public use dataset stated in your approved original research question. Submit the SAS Code, Log & Results *Objectives and Research question: Restricting to male adults aged 18-64 years and above, is there a relationship between insufficient sleep and obesity among US adults 18-64 after adjusting for education and employment using the 2018 behavioral risk factor surveillance system. data DATAOUT.joyBRFSS2018 (keep= sleepcat obese  educat employed ); set DATAOUT.cdbrfs18 (where=(  ( 1<><=24) and=""        ="" (="" _bmi5cat="" in="" (1,2,3,4)) ="" and="" (_educag="" in="" (1,2,3,4))="" and="" (_age_g="" in="" (1,2,3,4,5))="" and  ="" (employ1="" in="" (1,2,3,4,5,6,7,8))  ="" ));="" ;=""          ="" sleepcat="0;"><><=10 then sleepcat=1;  =""          ="" obese="0;" if ="" _bmi5cat=" 4 then obese=1;"  =""          ="" educat="0; *" hs="" or="" less;="" if _educag="" in="" (3,4) then educat="1; *College" or="" more;=""  =""          ="" employed="0; *not" employed/retired/unable="" to="" work;="" if employ1="" in="" (1,2,5,6) then employed="1;  *employed;" run;=""  ="" proc freq data="DATAOUT.joyBRFSS2018;  *table" 1;="" tables ="" (="" educat="" employed)*obese=""  chisq;="" run;=""  ="" proc freq data="DATAOUT.joyBRFSS2018;  *table" 2;="" tables ="" (obese="" educat="" employed)*sleepcat=""  chisq;="" run;=""  ="" proc logistic data="DATAOUT.joyBRFSS2018;  *table" 3;=""   class  ="" sleepcat="" (ref='0' )="" obese="" (ref='0' )="" educat="" (ref='0' )="" employed="" (ref='0' )=""   / param="ref;"          =""   model sleepcat="obese" educat="" employed="" ;="" *title="" 'multivariable="" logistic="" regression="" for="" odds';="" run;="" question:="" use="" sas="" ondemand="" to="" analyze="" data="" from="" the="" public="" use="" dataset="" stated="" in="" your="" approved="" original research="" question.="" submit="" the="" sas="" code,="" log="" &="" results="" *objectives="" and="" research="" question:="" restricting="" to="" male="" adults="" aged="" 18-64="" years="" and="" above,="" is="" there="" a="" relationship="" between="" insufficient="" sleep="" and="" obesity="" among="" us="" adults="" 18-64="" after="" adjusting="" for="" education="" and="" employment="" using="" the="" 2018="" behavioral="" risk="" factor="" surveillance="" system.="" data dataout.joybrfss2018="" (keep="sleepcat" obese ="" educat="" employed="" );="" set dataout.cdbrfs18="" (where="( "><><=24) and=""        ="" (="" _bmi5cat="" in="" (1,2,3,4)) ="" and="" (_educag="" in="" (1,2,3,4))="" and="" (_age_g="" in="" (1,2,3,4,5))="" and  ="" (employ1="" in="" (1,2,3,4,5,6,7,8))  ="" ));="" ;=""          ="" sleepcat="0;"><><=10 then sleepcat=1;             obese=0; if  _bmi5cat = 4 then obese=1;             educat=0; * hs or less; if _educag in (3,4) then educat=1; *college or more;             employed=0; *not employed/retired/unable to work; if employ1 in (1,2,5,6) then employed=1;  *employed; run;   proc freq data=dataout.joybrfss2018;  *table 1; tables  ( educat employed)*obese / chisq; run;   proc freq data=dataout.joybrfss2018;  *table 2; tables  (obese educat employed)*sleepcat / chisq; run;   proc logistic data=dataout.joybrfss2018;  *table 3;   class   sleepcat (ref='0') obese (ref='0') educat (ref='0') employed (ref='0')   / param=ref;             model sleepcat = obese educat employed ; *title 'multivariable logistic regression for odds'; run;  =""          ="" obese="0;" if ="" _bmi5cat=" 4 then obese=1;"  =""          ="" educat="0; *" hs="" or="" less;="" if _educag="" in="" (3,4) then educat="1; *College" or="" more;=""  =""          ="" employed="0; *not" employed/retired/unable="" to="" work;="" if employ1="" in="" (1,2,5,6) then employed="1;  *employed;" run;=""  ="" proc freq data="DATAOUT.joyBRFSS2018;  *table" 1;="" tables ="" (="" educat="" employed)*obese=""  chisq;="" run;=""  ="" proc freq data="DATAOUT.joyBRFSS2018;  *table" 2;="" tables ="" (obese="" educat="" employed)*sleepcat=""  chisq;="" run;=""  ="" proc logistic data="DATAOUT.joyBRFSS2018;  *table" 3;=""   class  ="" sleepcat="" (ref='0' )="" obese="" (ref='0' )="" educat="" (ref='0' )="" employed="" (ref='0' )=""   / param="ref;"          =""   model sleepcat="obese" educat="" employed="" ;="" *title="" 'multivariable="" logistic="" regression="" for="" odds';="">
Answered Same DayOct 17, 2022

Answer To: Question: Use SAS OnDemand to analyze data from the public use dataset stated in your approved...

Mohd answered on Oct 18 2022
52 Votes
Results_ joy.sas
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here