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
Create Twoway Line Graph Forcing Gaps for Missing PeriodsHi all, My data: Code: input float(Datum_n total_unem_bymonth sum_newpositions_bymonth) 723 14824…
convert string yyyy-mm-dd hh:mm:ss to %td formatHello, As the title of this question suggests, I have a set of data with variable "Qtm" in string f…
double-hurdle model not feasibleHi, I'm using a panel double-hurdle model using Code: xtdhreg command. But I get the following err…
How I find the wrong data?Dear Statalist, I have the note: multiple positive outcomes within groups encountered, followed by c…
Stata command for weighted M-estimator.Dear all, Does Stata has commands or packages that can estimate parameters for weighted M-estimator…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing coefficients in separate regressions from different time periods
Post a Comment