The main regression model
reghdfe y x controls, absorb (ind fyear) vce(cluster gvkey)
Now I want to run the same model for two different groups (male/female)
I have done the following
regress y x controls i.ind i.fyear if sex==1
estimate store h1
regress y x controls i.ind i.fyear if sex==0
estimate store h0
suest h1 h0, vce(cluster gvkey)
test [h1_mean] x = [h0_mean] x
I get results of the p-value of the difference between the coefficients of x from the above test. But I have a feeling that I am making some mistakes here.
So, I want to do the same test using a different method and compare the two results. If the results are the same, then I am confident that my first test is correct. But I don't know any other approaches.
Could anyone please help me with a different method to test the equality of the coefficients of regression?
Related Posts with Testing the equality of the regression coefficients
PPML estimation with bilateral trade agreement dummies.Hello everyone! I am applying PPML estimation to analyze the impact of two trade agreements (both b…
Seeking help with unbalanced panel data analysisHi, I have recently analyzed an unbalanced panel data, but since it is my first time to work with su…
How to deal with treatment assignment times vary problem in STATA17?Dear all Statalist experts, today I read the new function of Difference-in-Difference test from STAT…
Confusion about the example in STATA help file of didregressToday I read the detail description of didregress from STATA. from page 6 and 7, there is a point th…
The problem with count if syntax regarding encoded string variablesFrom the dataset hospdd given by STATA (https://www.stata-press.com/data/r17/hospdd.dta), I want to …
Subscribe to:
Post Comments (Atom)
0 Response to Testing the equality of the regression coefficients
Post a Comment