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
R2000 in logistic regression and I can't find what is missingFirst off I want to say that I am new to Stata and also to statistics. I have searched for a solutio…
creating 1 dataset of frequencies for the same categorical variables that are in 2 different datasetsHi all, I have 2 different individuals-level datasets that share the same categorical variables(e.g…
Export data to RDS filesHello, For my work, I am using a combination of Stata and R. I would like to export my data from Sta…
Panelregression with industry and year FEHello, i should perform a panelregression with industry and year FE and cluster by firm and year at…
Error 301: last estimation results not found, nothing to storeDear Statalist, I want to store the results from the user written stata command "fuzzydid" (availab…
Subscribe to:
Post Comments (Atom)
0 Response to Wald test for one-sided hypothesis - strict inequality
Post a Comment