orderStatistics | R Documentation |
Computes the order statistics of a "timeSeries"
object.
orderStatistics(x)
x |
a |
orderStatistics
computes the order statistics for each column of a
"timeSeries"
object. The output is a named list with the order
statistics for each column in a separate component.
a named list, in which each component is an
univariate "timeSeries"
containing the order statistics of the
corresponding column of the input time series.
## Load Swiss Pension Fund Benchmark Data -
setRmetricsOptions(myFinCenter = "GMT")
X <- LPP2005REC[, "SPI"]
colnames(X)
## Compute 1% Order Statistics -
N <- round(0.01*nrow(X))
N
OS <- orderStatistics(X)[[1]]
OS[1:N, ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.