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
reshape or what?Dear All, I have this dataset, Code: * Example generated by -dataex-. To install: ssc install data…
import many csv filesDear All, I generate many csv and excel files as Code: cd "E:\Stata\import data\manycsv" webuse g…
Data manipulation for ciplotI use -ciplot- to show the state of Health (1Very Good...5Very bad) across Age. -ciplot- graphs the …
Margins different between male and female?Clyde Schechter I ran this regression equation Code: reg income c.age i.educ i.gender c.workhour…
Graph bar with custom labelsDear Statalist I have been struggling with the following issue for quite a while now. Unfortunately…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing coefficients in separate regressions from different time periods
Post a Comment