sevenNS | R Documentation |
Function to compute seven-number summaries (minimum, 1st octile, 1st quartile, median, 3rd quartile, 7th octile, maximum)
sevenNS(x, na.rm = TRUE, type = 7)
x |
numeric vector |
na.rm |
logical; remove |
type |
an integer between 1 and 9 selecting one of nine quantile
algorithms; for more details see |
In contrast to Tukey (1977) who proposes hinges and eighths,
we use function quantile
.
A numeric vector of length 7 containing the summary information.
Matthias Kohl Matthias.Kohl@stamats.de
Tukey, J.W. (1977). Exploratory Data Analysis. Section 2G.
fivenum
, quantile
x <- rnorm(100) sevenNS(x) sevenNS(x, type = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.