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).
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).
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlinesOrder Paper Now