Good morning,
For my master thesis I have to analyze the impact of a treatment X at time t on an outcome Y at t+1.
Currently, my dataset is cross-sectional having a column identifying only once the individual and all the other variables, collected both at time t and time t+1, not being distinguished by the time element.
Therefore, I was wondering whether I have to reshape my data in order to have two rows for each individual in the dataset to obtain something like this:
However, it is not clear to me which commands I should use on STATA to obtain the above results.
Thank you
For my master thesis I have to analyze the impact of a treatment X at time t on an outcome Y at t+1.
Currently, my dataset is cross-sectional having a column identifying only once the individual and all the other variables, collected both at time t and time t+1, not being distinguished by the time element.
ID | Xt | Xt+1 |
1 | a | b |
2 | c | d |
3 | e | f |
Therefore, I was wondering whether I have to reshape my data in order to have two rows for each individual in the dataset to obtain something like this:
ID | Xt | Xt+1 |
1 | a | . |
1 | . | b |
2 | c | . |
2 | . | d |
However, it is not clear to me which commands I should use on STATA to obtain the above results.
Thank you
Comment