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
General xtabond2 queriesDear Statalist, I am examining quarterly data for an unbalanced panel of 11,000+ banks from 1996:Q1…
PPML for one countryHi, If I estimate a gravity model using PPML from a balanced data panel for a several number of cou…
Interacting an independent variable with fixed effectsDear Statalist members, Thank you so much for reading this post and helping me answer my question! …
Transforming time series data into Panel data Hello, I have a time series dataset, downloaded from UNCTAD. Then I pasted the data into Stata data…
Correct Modeling of DataStata Experts: I have been struggling for several days with my data analysis plan and I am hoping f…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing coefficients in separate regressions from different time periods
Post a Comment