Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

libname Joy "/home/u XXXXXXXXXX/sasuser.v94"; proc contents data=Joy.joybrfss2018; run; data WORK; set Joy.joybrfss2018; if 6

1 answer below »
libname Joy "/home/u XXXXXXXXXX/sasuser.v94";

proc contents data=Joy.joy
fss2018;
un;

data WORK;
set Joy.joy
fss2018;


if 6<=SLEPTIM1<=10 then sleepcat=1;




obese=0;

if _BMI5CAT = 4 then obese=1;



XXXXXXXXXXeducat=0; * HS or less;

if _EDUCAG in (3,4) then educat=1; *College or more;



XXXXXXXXXXemployed=0; *not employed
etired/unable to work;

if employ1 in (1,2,5,6) then employed=1; *employed;

un;



proc freq data=Joy.joyBRFSS2018; *table 1;

tables ( educat employed)*obese / chisq;

un;



proc freq data=Joy.joyBRFSS2018; *table 2;

tables (obese educat employed)*sleepcat / chisq;

un;



proc logistic data=Joy.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';

un;
Answered Same Day Oct 23, 2022

Solution

Mukesh answered on Oct 23 2022
50 Votes
2
Solution
    
DECISION AND CONCLUSIONS
Hypothesis
H01 = there is no association between educated and obese
H02 = there is no association between employed and obese
H03 = there is no association between obese and Sleepcat
H04 = there is no association between employed and sleepcat
     Analysis of Effects
    Effect
    DF
    Chi-Square
    p- value
    educat * obese
     1
    919.2429
    <.0001
    employed * obese
     1
    660.6443
    <.0001
    obese * sleepcat
     1
    1076.1261    
    <.0001
    educat * sleepcat
     1
    2314.7180
    <.0001
    employed * sleepcat
    
        5374.7661
    
    <.0001
There was a significant association between educated and obese (Χ2(1) = 919.2429, p < .0001).
There was a significant association between employed and obese...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here