Hello, I have a dataset of european regions for each year, but there are multiple entry of each region for each corresponding year. How do I summarise for each region according to each year. Keeping it in mind the xt function doesnot work since there are repeated time values within the panel.
The data looks as of below
region year value
1 2007 0.8
1 2007 0.9
1 2007 0.7
1 2008 0.6
1 2008 0.888
2 2007 0.4
2 2007 0.9
I need to calculate yearly total for each region.
Thank you.
Related Posts with Summarise data
Estimating Okun's Law using data from Economic Report of the President 2020Hi, I am a beginner in stata, trying to estimate Okun's law using data from Economic Report of the …
PPML extraction of standard errors matrix of fixed effectsDear @Joao Santos Silva As PPML produces robust standard errors, I am wondering how I can extract t…
How do I get time difference (gap) in second?I have a dataset like this Code: * Example generated by -dataex-. To install: ssc install dataex cl…
How to Reduce Rows by Collapsing Repeating DatesI'm trying to create an appropriate time series from the below data. The dates repeat because of the…
Help!!! Convergence error in calculating of productivity by SFA - "Kumbhakar, S.C, 2015"Hi everyone, I am calculating total factor productivity by the SFA model in using STATA. When I ru…
Subscribe to:
Post Comments (Atom)
0 Response to Summarise data
Post a Comment