Hi everyone:
I have a panel that is structured as the following:
I have 10 countries; for every country I have a wave that refers to the survey where they took the data, that goes from 4 to 57 (from the 2020-04 to 2024-07; i.e. monthly data). In every wave they took data from people, almost 1500 people for every country in every wave, that could do a follow-up in the following months. Some people took just an interview, say in wave 4, some other took from the fourth interview to the 30th one.
To give you an example, imagine that Mario took the first interview in Austria in 2021-04 up to the last one in 2023-01 (is not allowed to have hole, you must do the follow up the following month if you want to continue); meanwhile George took only two interview in Germany, the 2022-04 and the 2022-05.
At the first time, when I was setting the panel data, I thought the classic xtset country_n wave; but of course It gave me back an error, i.e. the fact that there are repeated wave within every country. How should I set the panel data if I'm interesting in analyzing the differences between countries across time, and between id in every country across time? At the beginning I was thinking in just doing xtset id wave, but it is very strong unbalanced (for reasons that you can intuitively think, e.g. thinking about the heterogeneity of the number of waves taken) and doesn't work very well.
Thank you all for the attention
I have a panel that is structured as the following:
I have 10 countries; for every country I have a wave that refers to the survey where they took the data, that goes from 4 to 57 (from the 2020-04 to 2024-07; i.e. monthly data). In every wave they took data from people, almost 1500 people for every country in every wave, that could do a follow-up in the following months. Some people took just an interview, say in wave 4, some other took from the fourth interview to the 30th one.
To give you an example, imagine that Mario took the first interview in Austria in 2021-04 up to the last one in 2023-01 (is not allowed to have hole, you must do the follow up the following month if you want to continue); meanwhile George took only two interview in Germany, the 2022-04 and the 2022-05.
At the first time, when I was setting the panel data, I thought the classic xtset country_n wave; but of course It gave me back an error, i.e. the fact that there are repeated wave within every country. How should I set the panel data if I'm interesting in analyzing the differences between countries across time, and between id in every country across time? At the beginning I was thinking in just doing xtset id wave, but it is very strong unbalanced (for reasons that you can intuitively think, e.g. thinking about the heterogeneity of the number of waves taken) and doesn't work very well.
Thank you all for the attention
Comment