I have an OLS regression that looks at the effect of 6 conditions on attitude, and each observation is randomized into 1 of the 6 conditions.
reg attitude i.condition
To compare the effect of condition 2 vs condition 4, I used a post estimation Wald test that uses all the observations from my sample:
test 2.condition = 4.condition
and the F stat result is...
F( 1, 814) = 6.55
Prob > F = 0.0107
However, if I create a dichotomous variable where feedbackinc 0 = if condition == 2 and feedbackinc 1 = condition == 4, and all other conditions are missing values for this variable. My Wald test results change because the degrees of freedom is different.
reg attitude i.feedbackinc
test 0.feedbackinc = 1.feedbackinc
F( 1, 271) = 7.18
Prob > F = 0.0078
I'm just wondering that which regression and Wald test is correct for comparing condition 2 to condition 4? The one with all observations, or the one that only includes people in condition 2 and condition 4?
Thank you!
reg attitude i.condition
To compare the effect of condition 2 vs condition 4, I used a post estimation Wald test that uses all the observations from my sample:
test 2.condition = 4.condition
and the F stat result is...
F( 1, 814) = 6.55
Prob > F = 0.0107
However, if I create a dichotomous variable where feedbackinc 0 = if condition == 2 and feedbackinc 1 = condition == 4, and all other conditions are missing values for this variable. My Wald test results change because the degrees of freedom is different.
reg attitude i.feedbackinc
test 0.feedbackinc = 1.feedbackinc
F( 1, 271) = 7.18
Prob > F = 0.0078
I'm just wondering that which regression and Wald test is correct for comparing condition 2 to condition 4? The one with all observations, or the one that only includes people in condition 2 and condition 4?
Thank you!
Comment