Hi @mkeintz, thank you very much for your contribution! The code you suggested worked perfectly 🙂 Just for better understanding. What does "^=1" mean? The questions you have raised are also good food for thought. First, you are right. It doesn't matter if the companies have different time series. Some firms were established in 1989, others years later. So that's not a problem. Secondly, the data are prepared in such a way that each company always starts with the first quarter of a fiscal year and ends with the fourth quarter of a fiscal year. So it should not be possible to have missing values only for Q3. If the value for Q3 is missing (e.g. in 1993), the entire year is missing. However, this could be a very strict approach and could be reconsidered. Furthermore, I have reviewed my new data set, and indeed there is often a break in the early years of my time series. Therefore, censoring the data after the break would eliminate most of the company's observations, as you suspected. Is there any way to determine which of the two (or perhaps even three) subseries is the longest? If so, it might be a good idea to use the longest subseries for further analysis. For a minimum series size, 12 consecuitive observations (3 years) could be suitable as this would correspond to the 12 lags of the autocorrelation function. I think that since the data set is large enough to get meaningful results, it is not necessary to create two subseries. I look forward to hearing your and others' thoughts on this topic and how to test best for seasonality! Best, Waynerun
... View more