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
Tracking dropped observation countsI am using Robert Picard's excellent project package. I would like to keep track of the number of ob…
Simple parallel trends for Difference in DifferenceHello, I am doing a very basic Difference in Difference. I get my results for the DD fine, but for m…
Exporting what was done on Stata onto MathlabDear Stata users, Code: * Example generated by -dataex-. To install: ssc install dataex clear inp…
Marginal Effects after running -glm- estimatorI want to calculate the marginal effects of my control variables after regressing my dependent varia…
Nothing to graph after loopHi everyone, I'm working on ESS data and I want to graph the ESeC occupational class for all the 5 r…
Subscribe to:
Post Comments (Atom)
0 Response to Testing the equality of the regression coefficients
Post a Comment