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
How to calculate time varying exponentially weighted moving correlation whose mean is not zero?How can we calculate the time-varying EWMA correlation matrix in Stata when mean is not zero?? …
T-Test with Multi-way Clustered DataI would like to run a simple t-test on whether means of two groups are significantly different. The …
Multilevel Model DiagnosticsDear all, I would appreciate some guidance on what main diagnostic tests can be performed on mtmixe…
Exponentiated coefficients after mi estimate: melogitHello, I am looking to get exponentiated coefficients after estimating a multilevel, mixed effects l…
Variance ratio |VR(n,m)-1|Hello everyone, I am doing a research paper on informational efficiency (IE1). It is calculated by …
Subscribe to:
Post Comments (Atom)
0 Response to T-tests and regressions
Post a Comment