This function computes a running/rolling percentage rank.
Object coercible to xts or matrix.
Number of periods to use in the window or, if
Logical, use from-inception calculation?
The weight applied to identical values in the window. Must be between 0 and 1, inclusive. See details.
The computation for a percentage rank can vary depending on the weight given
to values in the window identical to the value being ranked. This weight can
be set using the
exact.multiplier argument which defaults to 0.5.
A object of percent ranks over a n-period moving window of the same
y or a vector (if
It may be important to note that this computation is different from the one used in Microsoft Excel's PERCENTRANK formula. Excel's computation is rather strange and gives inconsistent results as it uses interpolation to rank values that are not found within the lookback window.
The following site(s) were used to code/document this
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.