Hello--
I am interested in obtaining estimates from a contrast statement regarding an interaction term in a regression model. I am hoping for some guidance on the interpretation of the output and for suggestions on reorganizing the values for different output.
I am hoping to estimate the different effects of current-season and prior-season vaccination on being an influenza case. Both of these vaccination variables are binary, and the outcome (having influenza) is also binary. A simplified version of my regression model is:
After running this model, the contrast statement (in the following code) seems to provide effect estimates for:
1) Current season vaccination + prior season no vaccine, compared to no vaccine in either season
2) Current season vaccination + prior season vaccination, compared to no vaccine in either season
However, I wish to also know the effect of:
3) Current season vaccination + prior season vaccination, compared to current season no vaccine + prior season vaccination
Put another way, I wish to know the effect of:
[curr_sn_vax = 1, prior_sn_vax = 1] compared to [curr_sn_vax = 0, prior_sn_vax = 1]
I am not sure how to change the 'reference' category in the contrast statement to obtain this estimate. I am wondering if this may be possible through the use of margins or lincom, but as I am interested in the exponentiated log odds (and exponentiated log(OR)), I am not sure how best to manipulate the output from these commands to obtain what I want.
Any advice would be helpful, even if the answer is obvious to others.
(Edited to add: I am interested in both the exponentiated log odds & exponentiated log odds ratios.)
I am interested in obtaining estimates from a contrast statement regarding an interaction term in a regression model. I am hoping for some guidance on the interpretation of the output and for suggestions on reorganizing the values for different output.
I am hoping to estimate the different effects of current-season and prior-season vaccination on being an influenza case. Both of these vaccination variables are binary, and the outcome (having influenza) is also binary. A simplified version of my regression model is:
Code:
logistic influenza_case curr_sn_vax##prior_sn_vax
After running this model, the contrast statement (in the following code) seems to provide effect estimates for:
1) Current season vaccination + prior season no vaccine, compared to no vaccine in either season
2) Current season vaccination + prior season vaccination, compared to no vaccine in either season
Code:
contrast current_season_vaccine@prior_season_vaccine, effects eform
3) Current season vaccination + prior season vaccination, compared to current season no vaccine + prior season vaccination
Put another way, I wish to know the effect of:
[curr_sn_vax = 1, prior_sn_vax = 1] compared to [curr_sn_vax = 0, prior_sn_vax = 1]
I am not sure how to change the 'reference' category in the contrast statement to obtain this estimate. I am wondering if this may be possible through the use of margins or lincom, but as I am interested in the exponentiated log odds (and exponentiated log(OR)), I am not sure how best to manipulate the output from these commands to obtain what I want.
Any advice would be helpful, even if the answer is obvious to others.
(Edited to add: I am interested in both the exponentiated log odds & exponentiated log odds ratios.)
Comment