1
I need to divide a time series into 20 equally spaced percentiles and create a ranking for that division by classifying implied volatility levels, in this case.
The time series is composed of daily data from 2011 to 2019, and the percentiles will be built in an annual period, so I’m going to look at a value at the moment t and classify it according to 20 percentiles defined from the historical series of 1 year prior to date t and if that value in t is greater than the highest value observed in the previous year, a category 21 would be created to indicate a very high level.
Welcome to Sopt, post in question what you have tried so far and what is your doubt as clearly as possible.
– Filipe L. Constante
Hi, Filipe! I need to find out how to create this percentile ranking in a period of 1 year. I just started using R, so for this part of my dissertation, I have no idea how to start :S
– AparecidaMartins