Hi all,

In the current dataset, I have yearly-monthly data and I would like to transform it into yearly data for each individual. I believe this is somewhat simply task, however it doesn't seem to work for me.

Thanks!

Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input long(lopnr Utbetmanad) double Belopp
276 201401 2823
277 201401 2021
325 201401 3476
334 201401 2186
351 201401 1517
357 201401  123
end