Dear all,
I want to compare the coefficients of the variable x from 2 different time periods and see if they are statistically different from each other. I use the code:
.reg emp x y z i.year if year>2003
.estimate store m1
.reg emp x y z i.year if year<2004
.estimate store m2
.suest m1 m2, cluster(region)
But Stata gives me an error saying that " year: factor variable base conflict". Is this because regressions are run on different time periods? is there a way to fix it and then test if coefficients of x are the same?
Could you suggest any alternative ways?
Related Posts with Comparing coefficients in separate regressions from different time periods
forvaluesI am trying to respect the rules/norms of this forum, but I didn't feel dataex did much good in this…
graph estimated coefficients after oaxaca_rif commandDear all, I use oaxaca_rif user written command by Rios-Avila (Rios-Avila, F. 2020. Recentered infl…
Panel Data with Count DV - CEM & Diff-in-Diff & NBREGHello! In my dataset, I'm looking to model the effect of a particular treatment on the number of pa…
Error "pweights must be positive"Hi Statalists, I keeps getting an error message, ""pweights must be positive", when using the "mixe…
Drop unmatched data after IPTWHello everyone, I'd like to ask how to drop unmatched observations after kernel and IPTW matching. T…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing coefficients in separate regressions from different time periods
Post a Comment