Dear Stata Specialists,
I have a problem in aggregating the data from weekly yo yearly. I use tscollap command and it return me the following error: The target frequency must be lower than the current frequency.
To be more specific this is a panel data, strongly balanced with a weekly time frequency for 20 countries between 2005w1 until 2014w52. Is there another method to collapse or aggregate from week to year and country specific data (i don't want to lose any of them - e.g. year and country)?. What I want to obtain is yearly data for each country aggregated from the initial weekly data.
On the other hand, my first intention was to use an analysis which combines different sampling data or the famous MIDAS - Mixed Data Sampling regression, but to my limited skills I cannot find useful information in how to combine in the same panel data time series with different frequencies such as: weekly and yearly, therefore I have to use aggregation in order to estimate a linear regression. If there is a method to use MIDAS Regression in Stata please help me. Thank you for your time and attention.
Best Regards, Marian
I have a problem in aggregating the data from weekly yo yearly. I use tscollap command and it return me the following error: The target frequency must be lower than the current frequency.
To be more specific this is a panel data, strongly balanced with a weekly time frequency for 20 countries between 2005w1 until 2014w52. Is there another method to collapse or aggregate from week to year and country specific data (i don't want to lose any of them - e.g. year and country)?. What I want to obtain is yearly data for each country aggregated from the initial weekly data.
On the other hand, my first intention was to use an analysis which combines different sampling data or the famous MIDAS - Mixed Data Sampling regression, but to my limited skills I cannot find useful information in how to combine in the same panel data time series with different frequencies such as: weekly and yearly, therefore I have to use aggregation in order to estimate a linear regression. If there is a method to use MIDAS Regression in Stata please help me. Thank you for your time and attention.
Best Regards, Marian
Comment