| Library: | stats |
| See also: | quantile |
| Macro: | fivenum | |
| Description: | computes the five number summary consisting of the minimum and maximum, the quartiles and the median. |
| Usage: | five = fivenum (x) | |
| Input: | ||
| x | array | |
| xvars | optional, p x 1 string vector, variable names. Note, that only up to 15 characters are used. | |
| Output: | ||
| five | string output, containing five number summary. | |
library("stats")
setenv("outputstringformat", "%s")
randomize (0)
x = normal (200)
fivenum (x)
Contents of five [ 1,] [ 2,] ================================================== [ 3,] Five number summary [ 4,] -------------------------------------------------- [ 5,] Minimum -2.7801947 [ 6,] 25% Quartile -0.59753362 [ 7,] Median -0.064324884 [ 8,] 75% Quartile 0.54136684 [ 9,] Maximum 2.4442013 [10,] ================================================== [11,]
| Library: | stats |
| See also: | quantile |