Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

SAS PROC LOGISTICS DATA ANALYSIS. Need crude and adjusted odd ratios with the CI

ID: 3739978 • Letter: S

Question

SAS PROC LOGISTICS DATA ANALYSIS. Need crude and adjusted odd ratios with the CIs

I have a project where I have to do a data analysis of a cross sectional study looking at a minimum of 4 confounders and 1 effect modifier on top of the exposure using SAS.

I am supposed to run a proc logistic on this to give crude and adjusted odd ratios . My issue is that the variables all have multiple levels such as my exposure is regions. How do I get the Odd ratio for each individual region? My effect modifier is sex, how do I get the individual OR for male and female?

Please help! I am so bad at SAS and I need to get the data before I can complete the rest of my project.

Explanation / Answer

1. The following standard procedure codes have to be executed in order to get odd ratios as output within the pro logistics data sets within SAS software :

a) ODS TRACE ON;

The above procedure code will look into the log and will get the required names from the tables as output in regards to the odd ratios requirements.

b) ODS OUTPUT NAME10=DATA10, NAME11=DATA11;

The above procedure code will identify specific names witin the tables and will display the same names as ODS output data. Within the above procedure code we have to replace the names (i.e. NAME1 and NAME2) with the actual that needs to be searched within the table and the same will be displayed as output in the form of data sets.

2. The following standard procedure code has to be executed in order to get the individual data(i.e. male/female) based on sex as the effect modifier:

PROC LOGISTICS DATA=MALE/FEMALE, PLOTS=SEX;

PROC LOGISTICS is a functiont that helps to display the data sets from the table based on individual condition that is relevant to a particular effect modifier.