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
Separating big string variablesDear All, I have downloaded the dataset from the scimago journal ranking website. The downloaded da…
How to subtract within a column based on criteria from other columns?Hi, I have the following variables in my dataset: ID, group, nnid1, TRT, OUTCOME There are two gro…
Row names with esttab using over()Hi all, I'm using Stata 17 and the user-written esttab command from SSC to create/export tables to …
How to get 95% Confidence Interval (CI) of the turning point of an inverted U-shaped curve with stata?Dear all, I have obtained an inverted U-shape relationship between independent variable X and depen…
AUC in cutpt vs roctabGood morning, I use . cutpt to calculate cut points (reference ranges) for laboratory diagnostic met…
Subscribe to:
Post Comments (Atom)
0 Response to T test
Post a Comment