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
analysis on two-eye datasetHello, I am trying to compare the intraocular pressure (IOP, a continuous variable) between two trea…
Export data in histogramI am new to stata (I am using version Stata/IC 12.1 for Mac, 64-bit Intel) and succeeded in producin…
Fama French: Calculating portfolio returns within sub-portfolios (aggregation of monthly returns) in different dimensionsHey all, I hope you are doing all well. I would like to calculate portfolio returns for an individ…
Cox model margins estimatesDear colleagues, I am using STATA version 15.1 and am struggling to estimate margins for a continuo…
How to introduce initial values in CMP for 4 eq. TobitsHi, I am estimating a model with 4 equations, each of them Tobit for a Time Use Survey (US edition).…
Subscribe to:
Post Comments (Atom)
0 Response to Testing the equality of the regression coefficients
Post a Comment