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 was suggested to use the following code:
gen byte largetone = Tone > Median if Tone < . reghdfe DepVar i.largetone##(c.IndVar c.ControlVar) , absorb(sic2 fyear) cluster(gvkey)
The test reported next to the interaction term between 1.largetone and lndVar is the test I am looking for.
1. As an alternative method, can I use the following regression and look at the coefficient of the interaction term?
reghdfe DepVar i.largetone (or any indicator variable used to identify subgroups)##c.IndVar ControlVar, absorb(sic2 fyear) cluster(gvkey)
Does this regression aim to achieve different goals compared to the one I was suggested initially?
2. If I want to run subsample regressions separately, such as the models below:
reghdfe DepVar IndVar ControlVar if tone>median_tone, absorb(sic2 fyear) cluster(gvkey)
reghdfe DepVar IndVar ControlVar if tone<median_tone, absorb(sic2 fyear) cluster(gvkey)
Do I need to put the variable, tone, in these regressions as a control variable?
Related Posts with T-tests and regressions
Pseudo-R^2 after matching with atts.adoDear all, I am currently trying to apply different propensity score matching estimators to my data.…
Help in Propensity Score MatchingI am at the learning stage of Propensity score matching. My dependent variables are ROA and Tobin q.…
Data FilteringI am working with WRDS data. A short sample (not real) is pasted below (sorry for the formatting of …
Renaming Variables from string in other variabelHi there, I have a peculiar problem. We are working with panachage voting from Swiss elections. Our…
Mapping across 2 datasets Dear All, I am stuck trying to loop through every observation from one dataset and map the results…
Subscribe to:
Post Comments (Atom)
0 Response to T-tests and regressions
Post a Comment