hdseq | R Documentation |
Estimate the quantiles for the data in vector x using the Harrell-Davis estimate of the qth quantile.
hdseq(x, qseq = seq(0.1, 0.9, 0.1))
x |
A numeric vector of observations. |
q |
A numeric vector of quantiles - default to the deciles. |
A vector of quantile estimates.
x <- rnorm(100) # create vector hdseq(x) # estimates of the deciles hdseq(x, qseq = c(0.25, 0.5, 0.75)) # estimates of the quartiles hdseq(x, qseq = c(seq(1,4),seq(6,9))) # estimates of the deciles except the median
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.