percentile: percentile & quartile

Description Usage Arguments Value Author(s) Examples

Description

Calculate the 11 pecentiles for the vector x, or the 0th, 25th, 50th, 75th, 100th and mean value for the vector x

Calculate the 0th, 25th, 50th, 75th, 100th and mean value for the vector x

Usage

1
2
3
percentile(x, probs = seq(0, 1, 0.1), ...)

quartile(x, ...)

Arguments

x

a numeric vector

probs

a vector or probabilities

...

further arguments passed to quantile

Value

percentile: a named vector of length 11, names = the percentiles

quartile: a named vector of length 6, names = the quartiles, “mean”

Author(s)

Mark Cowley, 21 June 2005

Examples

1
2
3
x <- rnorm(25,0,1)
percentile(x)
quartile(x)

drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.