Hi,
I have two variables called: morder_treated and morder_control, which is the order the observations were added to the dataset previously for respectively treated and control units (ETS == 1 for treated). Furthermore i have the variables: green_pat9903 and green_pat0412.
Each treated unit has a morder_treated value and is paired to the unit that has the same value on morder_control, for example if the treated has morder_treated == 1 then it is paired to the observation that has morder_control == 1.
For example:
Here the first observation is paired to the third, and the second to the fourth.
I want to compute: green_pat0412 (if ETS == 1) - green_pa9903 (if ETS == 1) - (green_pat0412 (if ETS == 0) - green_pat9903 (if ETS == 0)). That is, the difference in post-pre for treated units minus the difference in post-pre for control units.
I'm struggling with telling stata which observation it should be paired to.
Any suggestions to how to go about this?
// Lorens
I have two variables called: morder_treated and morder_control, which is the order the observations were added to the dataset previously for respectively treated and control units (ETS == 1 for treated). Furthermore i have the variables: green_pat9903 and green_pat0412.
Each treated unit has a morder_treated value and is paired to the unit that has the same value on morder_control, for example if the treated has morder_treated == 1 then it is paired to the observation that has morder_control == 1.
For example:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double(ETS green_pat9903 green_pat0412 morder_treated morder_control) 1 0 0 1 203.5 1 0 0 2 204.5 0 0 0 103.5 1 0 0 0 104.5 2 end
I want to compute: green_pat0412 (if ETS == 1) - green_pa9903 (if ETS == 1) - (green_pat0412 (if ETS == 0) - green_pat9903 (if ETS == 0)). That is, the difference in post-pre for treated units minus the difference in post-pre for control units.
I'm struggling with telling stata which observation it should be paired to.
Any suggestions to how to go about this?
// Lorens
Comment