Description Generic function Methods Author(s) See Also Examples
Quantiles for FLQuant objects can be obtained with this method.
Default quantiles returned are seq(0, 1, 0.25), but they can be specified using
the probs argument. The returned FLQuant object uses the
sixth dimension (iter) to store the requested quantiles, with appropriate
dimnames.
For objects of class FLQuantPoint, quantile is merely an accessor
for two elements of the sixth dimension, lowq and uppq. You could
use the lowq and uppq methods instead.
quantile(x, ...)
Describe method
Describe method
The FLR Team
quantile, FLQuant, FLQuantPoint
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Normally distributed FLQuant, with log-normal random mean and fixed sd of 20
flq <- rnorm(100, FLQuant(rlnorm(20), dim=c(2,10)), 20)
# obtains all standard quantiles (0, 0.25, 0.5, 0.75 and 1)
quantile(flq)
# select one of them by name
quantile(flq)[,,,,,'0.75']
# calculates the 0.05 quantile only
quantile(flq, 0.05)
# creates an FLQuantPoint from previous FLQuant
flp <- FLQuantPoint(flq)
# return each of the two quantiles (025 and 0.75)
quantile(flp, 0.25)
quantile(flp, 0.75)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.