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
How to run the Stata code for specific number of observations in panel data?Because when running the code below, it seems that Stata takes a long time to run it, so I want to t…
Multiple imputation convergence not achievedHi all, I'm trying to perform chained multiple imputations but get an error message about convergen…
mediation effect and endogenousDear sir or madam: But I have some question about the mediation effect and endogenous: Is there a tr…
Inverse Probability Weighing for Multiple TreatmentsHi all, I am trying to compute inverse probability weight for multiple treatments. But I am struggl…
What is the c.operator in reg and set emptycells ?Today when I run this regression Code: did2s l_homicide [aweight=popwt], first_stage(i.sid i.year)…
Subscribe to:
Post Comments (Atom)
0 Response to subsample comparison analysis
Post a Comment