Hello Everyone,
I have a situation with respect to my data. I have weekly data from the top 200 songs streamed in Spotify for a total of 47 countries per week. So at the end when I append the 47 countries in one file to obtain a single file I get the following situation:
id artist country date
1 a x w1
1 a y w1
1 a z w1
1 a xx w1
2 b x w1
2 b y w1
2 b z w1
2 b xx w1
And so forth for the period of two years. So basically what I have is the same id in the same country repeated n times depending on how many songs they have in that country in that week, repeated around 47 countries for a total of 104 weeks. So basically I don't know how to set up the data for a xtset or a tsset, or if even doing that is necessary. Besides that, I tried to collapse the data so to have the percentages of how many times by country they are names but still I have the problem that the id ends up repeated through the different dates.
Any pieces of advice?
Cordially,
Ramadan Aly
Related Posts with Advice regarding panel data and collapse
How to use hettest for heteroskedasticity testingHi all, I have a regression and want to test it for heteroskedasticity. Besides the dependent varia…
Heatmap of the cluster-ordered distance matrixHello Stata Users, I am trying to get the optimal number of clusters for my analysis using dhm packa…
Help needed and very much appreciated! :)I have been already working in stata for a while for my thesis, but now I realized that the results …
adjusting in mixed multilevel linear regressionDear all! We are investigating the longitudinal association between FTO SNP and BMI. We have repeat…
To count observations based on another variablesHello everyone, I have tried to find a way to know how many candidates repeat and don't repeat in t…
Subscribe to:
Post Comments (Atom)
0 Response to Advice regarding panel data and collapse
Post a Comment