Using the data set from problem 9.8, conduct a logistic regression predicting outcome (case or control) using SMOKING,ASBESTOS. and SES. Use a CLASS statement to create two dummy variables for SES, setting the reference level to '2-Mediurn'. (HINT: CLASS SES (PARAM=REF REF='2-Medium'); PROC LOGISTIC uses the lower value formatted value of the outcome variable (if there is a format), and since 'Case' comes before 'Control', you don't need to include the DESCENDING option).
Problem 9.8
Run the following program to create a SAS data set called SMOKING. Outcome values of 1 represent cases (those with lung disease) and outcome values of 0 represent controls (those without lung disease). For this problem, generate a two by two table for outcome (OUTCOME) by smoking status (SMOKING). What is the chi-square and the odds ratio? Now, run a logistic regression with only SMOKING as the predictor variable. HINT: PROC LOGISTIC uses the lower value formatted value of the outcome variable (if there is a format), and since 'Case' comes before 'Control', you don't need to include the DE~ SCENDING option).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here