I get extremely large IRR (5225582) corresponding to immediate vaccine impact (vaxera) when I include an interaction term in my model.Though the interaction is significant.Does this mean this interaction is not good.
My data and code is as follows:
Interaction model:
glm n vaxera time postslope , link(log) family(nbinomial) vce(hac nwest 2) exp(midyrpop) eform
postslope denote the interaction term and vaxera denote immediate vaccine impact. The IRR am worried about when I include interaction is the IRR corresponding to vaxera
**Model without interaction
glm n vaxera time , link(log) family(nbinomial) vce(hac nwest 2) exp(midyrpop) eform
My data and code is as follows:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int yoa float midyrpop str3 spn_serotype byte n str12 type float(time vaxera postslope) byte(_est_a _est_b) 1999 33620 "19F" 0 "vaccine-type" 1 0 0 1 1 2000 34505 "19F" 0 "vaccine-type" 2 0 0 1 1 2001 35411 "19F" 2 "vaccine-type" 3 0 0 1 1 2002 36340 "19F" 3 "vaccine-type" 4 0 0 1 1 2003 39747 "19F" 0 "vaccine-type" 5 0 0 1 1 2004 41985 "19F" 2 "vaccine-type" 6 0 0 1 1 2005 42738 "19F" 2 "vaccine-type" 7 0 0 1 1 2006 43916 "19F" 0 "vaccine-type" 8 0 0 1 1 2007 44536 "19F" 1 "vaccine-type" 9 0 0 1 1 2008 44820 "19F" 1 "vaccine-type" 10 0 0 1 1 2009 46343 "19F" 0 "vaccine-type" 11 0 0 1 1 2010 47714 "19F" 3 "vaccine-type" 12 0 0 1 1 2012 40730.05 "19F" 2 "vaccine-type" 13 1 1 1 1 2013 43214.2 "19F" 0 "vaccine-type" 14 1 2 1 1 2014 47807 "19F" 0 "vaccine-type" 15 1 3 1 1 2015 47921 "19F" 0 "vaccine-type" 16 1 4 1 1 2016 42048.97 "19F" 0 "vaccine-type" 17 1 5 1 1 2017 21958.98 "19F" 0 "vaccine-type" 18 1 6 1 1 2018 46210 "19F" 0 "vaccine-type" 19 1 7 1 1 2019 45972 "19F" 0 "vaccine-type" 20 1 8 1 1 end
glm n vaxera time postslope , link(log) family(nbinomial) vce(hac nwest 2) exp(midyrpop) eform
postslope denote the interaction term and vaxera denote immediate vaccine impact. The IRR am worried about when I include interaction is the IRR corresponding to vaxera
**Model without interaction
glm n vaxera time , link(log) family(nbinomial) vce(hac nwest 2) exp(midyrpop) eform
Comment