I am trying to test a one-sided hypothesis after running a regression to see if the sum of two coefficients (X1 and x2) is greater than 0. My regression looks like this:
reghdfe y x1 x2 x3, noabsorb vce(robust)
I have tried this command:
test _b[x1] + _b[x2]=0
local sign_d = sign(_b[x1] + _b[x2])
display "Ho: coef _b[x1] + _b[x2] >=0 t= " invttail(r(df_r), ttail(r(df_r),`sign_d'*sqrt(r(F)))) " p-value = " 1-ttail(r(df_r),`sign_d'*sqrt(r(F)))
This displays the correct p-value for the hypothesis, but I am looking to test the STRICT inequality (H0: _b[x1] + _b[x2] >0) instead of _b[x1] + _b[x2] >=0. Is there any way to do this?
Related Posts with Wald test for one-sided hypothesis - strict inequality
ADF is WLS?Dear friends of STATA, I have version 13 of Stata and I wanted to ask you if the ADF method used by…
Testing if the difference between two rates is more than 5%.I need to test if the difference between male and female program coverage rates (number treated/targ…
Writing memory data to word tableHello As part of my job the results I get from Stata need to put into tables in a word document to…
Organizing text in a legendDear all, for a graph, I want to organize the legend as follows: symb group1: estimate (se) symb g…
Summarize Variables With District WeightsMy data comes with sample weights to make it representative of a school district. I know to tabulate…
Subscribe to:
Post Comments (Atom)
0 Response to Wald test for one-sided hypothesis - strict inequality
Post a Comment