Mean of values of the series for decile of another series
Posted: Thu Aug 01, 2019 12:31 pm
Hi everyone,
Could you please help me solve this puzzle? I have a time series A filled with observations and a series B filled with observations for the same time frame. Is there a way to find a mean of values of series B corresponding to every decile of series A?
As an example, you can imagine a time series A filled with 1000 observations ranging from 1 to 10 and a series B of 1000 observations. I would like to take the last decile (from 9 to 10) of series A and calculate a mean of the corresponding observations from series B.
Could you please help me solve this puzzle? I have a time series A filled with observations and a series B filled with observations for the same time frame. Is there a way to find a mean of values of series B corresponding to every decile of series A?
As an example, you can imagine a time series A filled with 1000 observations ranging from 1 to 10 and a series B of 1000 observations. I would like to take the last decile (from 9 to 10) of series A and calculate a mean of the corresponding observations from series B.