Hi,
I am trying to do a t test that the null hypothesis is B2= -B1 where B2 is the coefficient on a variable called lexpendB and B1 is the coefficient on lexpendA.
My stata output is as follows:
regress voteA lexpendA lexpendB prtystrA
Source | SS df MS Number of obs = 173
-------------+---------------------------------- F(3, 169) = 215.23
Model | 38405.1089 3 12801.703 Prob > F = 0.0000
Residual | 10052.1396 169 59.4801161 R-squared = 0.7926
-------------+---------------------------------- Adj R-squared = 0.7889
Total | 48457.2486 172 281.728189 Root MSE = 7.7123
------------------------------------------------------------------------------
voteA | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lexpendA | 6.083316 .38215 15.92 0.000 5.328914 6.837719
lexpendB | -6.615417 .3788203 -17.46 0.000 -7.363247 -5.867588
prtystrA | .1519574 .0620181 2.45 0.015 .0295274 .2743873
_cons | 45.07893 3.926305 11.48 0.000 37.32801 52.82985
------------------------------------------------------------------------------
But when I do ttest lexpendB=-lexpendA it gives me an error. What would be the code for testing this hypothesis?
I am trying to do a t test that the null hypothesis is B2= -B1 where B2 is the coefficient on a variable called lexpendB and B1 is the coefficient on lexpendA.
My stata output is as follows:
regress voteA lexpendA lexpendB prtystrA
Source | SS df MS Number of obs = 173
-------------+---------------------------------- F(3, 169) = 215.23
Model | 38405.1089 3 12801.703 Prob > F = 0.0000
Residual | 10052.1396 169 59.4801161 R-squared = 0.7926
-------------+---------------------------------- Adj R-squared = 0.7889
Total | 48457.2486 172 281.728189 Root MSE = 7.7123
------------------------------------------------------------------------------
voteA | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lexpendA | 6.083316 .38215 15.92 0.000 5.328914 6.837719
lexpendB | -6.615417 .3788203 -17.46 0.000 -7.363247 -5.867588
prtystrA | .1519574 .0620181 2.45 0.015 .0295274 .2743873
_cons | 45.07893 3.926305 11.48 0.000 37.32801 52.82985
------------------------------------------------------------------------------
But when I do ttest lexpendB=-lexpendA it gives me an error. What would be the code for testing this hypothesis?
Comment