Hello readers of the Stata list,
I cannot find a previously posted answer to my question.
I have run 2 multilevel models (people nested within neighbourhoods); one without and one with an interaction.
I have used two methods to calculate statistical significance of the interaction:
1. a manual calculation using -2*log likelihood (model one) minus -2* loglikehood (model 2). I then take the difference in the degrees of freedom (22) and the value from the calculation and check a chi2 table to see if the value from the calculation is greater than the p=0.05 value. When I use this method the interaction is not statistically significant.
2. I then used the post estimation test testparm (in the hope of saving some manual labour!). So, I type testparm NHses09#i.income09 after after the mixed model. I notice that when I use this command there are two degrees of freedom less (20 verse 22) because the test doesn't seem to take the reference interaction into account (eg. 1.NHses09#1.income09). When I use this test, the result from test parm is statistically significant.
Is there any way to have the reference categories included in the testparm command? If not, should I stick to the manual calculation?
My purpose for needing to make a statement about statistical significance of the interaction is so that I can write one line in a manuscript. While the significance of an interaction is not a major issue, as the interaction is meaningful in other ways, I must feel confident in the steps I'm undertaking to test for significance and justify what I'm writing to my supervisors.
I look forward to your feedback.
Emily
I cannot find a previously posted answer to my question.
I have run 2 multilevel models (people nested within neighbourhoods); one without and one with an interaction.
Code:
mixed WEMWBStotal i.agecat09 i.income09 i.NHses09 if sex2==2 || habneigh2:, cov(unstr) var vce(r) mixed WEMWBStotal i.agecat09 i.income09 i.NHses09 NHses09#i.income09 if sex2==2 || habneigh2:income09, cov(unstr) var vce(r)
1. a manual calculation using -2*log likelihood (model one) minus -2* loglikehood (model 2). I then take the difference in the degrees of freedom (22) and the value from the calculation and check a chi2 table to see if the value from the calculation is greater than the p=0.05 value. When I use this method the interaction is not statistically significant.
2. I then used the post estimation test testparm (in the hope of saving some manual labour!). So, I type testparm NHses09#i.income09 after after the mixed model. I notice that when I use this command there are two degrees of freedom less (20 verse 22) because the test doesn't seem to take the reference interaction into account (eg. 1.NHses09#1.income09). When I use this test, the result from test parm is statistically significant.
Code:
( 1) [WEMWBStotal]2.NHses09#2.income09 = 0 ( 2) [WEMWBStotal]2.NHses09#3.income09 = 0 ( 3) [WEMWBStotal]2.NHses09#4.income09 = 0 ( 4) [WEMWBStotal]2.NHses09#5.income09 = 0 ( 5) [WEMWBStotal]2.NHses09#9.income09 = 0 ( 6) [WEMWBStotal]3.NHses09#2.income09 = 0 ( 7) [WEMWBStotal]3.NHses09#3.income09 = 0 ( 8) [WEMWBStotal]3.NHses09#4.income09 = 0 ( 9) [WEMWBStotal]3.NHses09#5.income09 = 0 (10) [WEMWBStotal]3.NHses09#9.income09 = 0 (11) [WEMWBStotal]4.NHses09#2.income09 = 0 (12) [WEMWBStotal]4.NHses09#3.income09 = 0 (13) [WEMWBStotal]4.NHses09#4.income09 = 0 (14) [WEMWBStotal]4.NHses09#5.income09 = 0 (15) [WEMWBStotal]4.NHses09#9.income09 = 0 (16) [WEMWBStotal]5.NHses09#2.income09 = 0 (17) [WEMWBStotal]5.NHses09#3.income09 = 0 (18) [WEMWBStotal]5.NHses09#4.income09 = 0 (19) [WEMWBStotal]5.NHses09#5.income09 = 0 (20) [WEMWBStotal]5.NHses09#9.income09 = 0 chi2( 20) = 33.61 Prob > chi2 = 0.0289
My purpose for needing to make a statement about statistical significance of the interaction is so that I can write one line in a manuscript. While the significance of an interaction is not a major issue, as the interaction is meaningful in other ways, I must feel confident in the steps I'm undertaking to test for significance and justify what I'm writing to my supervisors.
I look forward to your feedback.
Emily
Comment