Hi all, I am currently using the following code to compare the statistical difference for the coefficient between two subsamples.
qui reg DepVar IndVar if LOSS==1
est store m1
qui reg DepVar IndVar if LOSS==0
est store m2
suest m1 m2, cluster(firm)
test [m1_mean]IndVar-[m2_mean]IndVar=0
Is there a way that I can include both fixed effects (year fixed and industry fixed effects) and firm cluster in this setting? Since in other full sample tests, I use reghdfe DepVar IndVar, absorb (industry year) cluster(firm)
Related Posts with subsample comparison analysis
ppml, ppml_panel_sg and ppmlhdfeHi all, I'm a PhD student and greatly appreciate your valuable comments on the following. I'm runn…
How can I convert a stata date value to missing?Hello, I am working with some data that has missing dates for certain observations. I am importing …
displaying Odds Ratios and 95% Confidence Intervals in word using outregHi All I am rather new to Stata and have encountered some difficulty in generating a word documents…
Interaction term issueDears Statalists, In my panel data analysis, I am using interaction term. The model looks something…
Combing Multiple VariablesHi, I am very new to Stata, so I apologize if this a basic question or has been answered elsewhere. …
Subscribe to:
Post Comments (Atom)
0 Response to subsample comparison analysis
Post a Comment