Hi all,
I'm working with panel data. There's one variable which contains time invariant data. The values for different respondents were not obtained in the same wave though. Some people answered in wave 1, some in wave 7 , some in wave 3, etc.
What I'm trying to do now is the following:
1. Write the existing value into all other waves for the same respondent. E.g., if there is a value (let's say 2) in wave 3 for respondent r1, copy the value 2 into all other waves for respondent 1 aswell.
If there is a value (7) in wave 5 for respondent r2, copy the value 7 into all other waves for respondent 2, too.
In addition to that I'm not sure whether I should tackle this issue before or after reshaping into wide format.
Anyone got an idea how you could solve this problem?
I'm working with panel data. There's one variable which contains time invariant data. The values for different respondents were not obtained in the same wave though. Some people answered in wave 1, some in wave 7 , some in wave 3, etc.
What I'm trying to do now is the following:
1. Write the existing value into all other waves for the same respondent. E.g., if there is a value (let's say 2) in wave 3 for respondent r1, copy the value 2 into all other waves for respondent 1 aswell.
If there is a value (7) in wave 5 for respondent r2, copy the value 7 into all other waves for respondent 2, too.
In addition to that I'm not sure whether I should tackle this issue before or after reshaping into wide format.
Anyone got an idea how you could solve this problem?
Comment