I am trying to estimate the effect that merger activity has on company employment, profitability and productivity. I have one pre-treatment year and three post-treatment years. I want to find treatment effects in the following format*:
a) t - (t -1)
b) (t + 1) - (t - 1)
c) (t + 2) - (t - 1)
d) (t + 3) - (t - 1)
*Where treatment year is year t and so on.
How would I specify a regression to do this for employment for example?
Secondly, my data is currently tabulated in an unhelpful format. It has been grouped by time period:
w -------- y ------- z
x ---------x----------x
x--------- x--------- x
x--------- x ---------x
*Where w, y, z refer to the time periods t-1, t, t+1 etc.
Intuitively this format would allow for a simple manual calculation of the DID estimators but I am keen to produce error terms and evaluate significance hence my interest in carrying out a regression.
Any ideas on how to quickly manipulate the data into a more suitable format? I do not particularly want to transpose each line of the data one by one.
Thanks in advance.
a) t - (t -1)
b) (t + 1) - (t - 1)
c) (t + 2) - (t - 1)
d) (t + 3) - (t - 1)
*Where treatment year is year t and so on.
How would I specify a regression to do this for employment for example?
Secondly, my data is currently tabulated in an unhelpful format. It has been grouped by time period:
w -------- y ------- z
x ---------x----------x
x--------- x--------- x
x--------- x ---------x
*Where w, y, z refer to the time periods t-1, t, t+1 etc.
Intuitively this format would allow for a simple manual calculation of the DID estimators but I am keen to produce error terms and evaluate significance hence my interest in carrying out a regression.
Any ideas on how to quickly manipulate the data into a more suitable format? I do not particularly want to transpose each line of the data one by one.
Thanks in advance.
Comment