0

I am trying to test the following: H0: Beta2+Beta3*.16 = 0 & Ha: Beta1 + Beta2*.5 does not = 0 using the car package

iv <- ivreg(lnwage ~ educ + exper + expersq100 + disadv + city + city10 + region10_2 + region10_3 + region10_4 + region10_5 + region10_6 + region10_7 + region10_8 + region10_9 + motheduc + fatheduc | nearuniv + exper + expersq100 + disadv + city + city10 + region10_2 + region10_3 + region10_4 + region10_5 + region10_6 + region10_7 + region10_8 + region10_9 + motheduc + fatheduc, data=a2 )
cov5 <- vcovHC(iv, type="HC1")
hnull_6 <-c("exper+expersqr100*.16=0")
linearHypothesis(iv, hnull_6, vcov=cov5)
Error in constants(lhs, cnames_symb) : 
The hypothesis "exper+expersqr100*.16=0" is not well formed: contains bad coefficient/variable names. 

How can I use the car package to successfully set my null without an error occurring? thanks!

Phil
  • 7,287
  • 3
  • 36
  • 66
L W
  • 1

0 Answers0