A very trivial question. I would like to collapse to the mean by converting the daily date to year and the corresponding variable observations obtaining one single value of each variable for each single corresponding year for both time series and panel
Thank you in advance
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(time bel) 10955 9.49 10958 9.49 10959 9.73 10960 9.73 10961 9.8 10962 9.65 10965 9.65 10966 9.65 10967 9.66 10968 9.66 10969 9.71 10972 9.71 10973 9.73 10974 9.73 10975 9.77 10976 9.84 10979 9.86 10980 9.85 10981 9.85 10982 9.85 10983 9.85 10986 9.85 10987 9.9 10988 9.9 11688 8.553 11689 8.475 11690 8.475 11693 8.475 11694 8.475 11695 8.475 11696 8.413 11697 8.413 11700 8.305 11701 8.305 11702 8.245 11703 8.245 11704 8.245 11707 8.244 11708 8.244 11709 8.198 11710 8.198 11711 8.198 11714 8.198 11715 8.198 11716 8.198 11717 8.198 11718 8.198 end format %td time
0 Response to Collapse to the mean
Post a Comment