Hi, I want to compare the coefficient on one variable (i.e. IndVar) from the regressions based on two subsamples .
reghdfe DepVar IndVar ControlVar Tone>Median, absorb(sic2 fyear) cluster(gvkey)
reghdfe DepVar IndVar ControlVar Tone<Median, absorb(sic2 fyear) cluster(gvkey)
I used the following code but it does not allow me to add the absorb and cluster functions when conducting the t-test.
reghdfe DepVar IndVar ControlVar Tone>Median, absorb(sic2 fyear) cluster(gvkey)
est store m1
reghdfe DepVar IndVar ControlVar Tone<Median, absorb(sic2 fyear) cluster(gvkey)
est store m2
suest m1 m2
test [m1_mean]IndVar = [m2_mean]IndVar
Anyone knows how to solve this problem? Or is there other easier way to compare the coefficient on one variable from the regressions based on two subsamples?
Related Posts with T test
Using Weights for countries in Survey DatasetHello everyone, I am working with 2 waves (5 and 6) of World Value Survey in Stata 15 and I am anal…
Using foreach for two set of groupsDear All, I have two groups of countries and pairwise data- importers and exporters. Eg. Importers=…
Foreach and gen ? Help please(Don't speak english, Hope you can understand) Hi, I was wondering if is possible making a loop to f…
Combine two strings with entry that has more informationDear statalists, I have two variables that capture the same thing but with differing precision. One…
estimate of theta = . in Cox shared frailty model using MIDear Statalist Members, I am not able to see the estimate of theta or the se of theta using e-return…
Subscribe to:
Post Comments (Atom)
0 Response to T test
Post a Comment