Hi everyone,
I try to build a counterfactual model with panel data from 1995 to 2014 for Germany. I can easily show the evolution of unemployment in this country during this period, using twoway.
But I would like to add in the twoway graph a line showing the evolution of unemployment if the unit labor cost would have remained the same as in 1995.
I have then two variables (let's simplify my model): U (unemployment) and ulc (unit labor cost).
The commands I used are the following (I used a fixed-effect model):
xtset country year
xtreg U ulc, fe
Then I've tried to build my counterfactual but it does not work and I'm not sure of what I am doing actually...
estimates store unemployment
xtreg ulc
estimates store unit
forecast estimates unemployment
forecast solve, begin(1996)
forecast adjust ulc=ulc_1995
forecast solve, begin(1996) prefix(new_)
twoway connected U ulc
Could someone help me please ?
Thanks a lot for reading.
BG
I try to build a counterfactual model with panel data from 1995 to 2014 for Germany. I can easily show the evolution of unemployment in this country during this period, using twoway.
But I would like to add in the twoway graph a line showing the evolution of unemployment if the unit labor cost would have remained the same as in 1995.
I have then two variables (let's simplify my model): U (unemployment) and ulc (unit labor cost).
The commands I used are the following (I used a fixed-effect model):
xtset country year
xtreg U ulc, fe
Then I've tried to build my counterfactual but it does not work and I'm not sure of what I am doing actually...
estimates store unemployment
xtreg ulc
estimates store unit
forecast estimates unemployment
forecast solve, begin(1996)
forecast adjust ulc=ulc_1995
forecast solve, begin(1996) prefix(new_)
twoway connected U ulc
Could someone help me please ?
Thanks a lot for reading.
BG
Comment