06-05-2017 11:42 AM
A case-control study was conducted to assess the association between exposure to tobacco smoke (TS) and lung cancer. 300 lifelong nonsmoking lung cancer cases and 1,288 nonsmoking controls were interviewed about exposure to ETS. Let cancer=I(lung cancer), ts= I(exposed to TS), gender=I(female). A logistic regression model was fit using the following SAS code
proc logistic data=cancer descending;
model cancer/count = ets gender ets*gender; run;
Here is part of the SAS output.
Analysis of Maximum Likelihood Estimates
How do you estimate odds lung cancer for males with ETS exposure?
06-05-2017 12:27 PM
Look at using the ODDSRATIO statement to determine the odds ratio for a variable in the interaction term.
Note that if your variables are categorical there should be a CLASS statement in your PROC and you should also define the coding type (GLM, REF, etc)
PS I'm going to move this to the Statistical Procedures forum.
06-05-2017 01:32 PM
06-05-2017 01:40 PM
Ok...then that's a stats question, not a programming question.
I have no idea how males/females or treatment are coded but you can calculate the probability by hand if you write the model for males with treatment out and then calculate the estimate. The exponent of that value would be the odds ratio.