Skip to contents

Shorthands for the 2.5th, 25th, 50th, 75th and 97.5th percentiles of a vector of posterior draws, kept for compatibility with earlier scripts.

Usage

q2.5(x)

q25(x)

q50(x)

q75(x)

q97.5(x)

Arguments

x

Numeric vector, for example the posterior draws of one parameter.

Value

A single unnamed number: the sample quantile of x from stats::quantile() with its default method.

Examples

x <- 0:100
c(q2.5(x), q25(x), q50(x), q75(x), q97.5(x))
#> [1]  2.5 25.0 50.0 75.0 97.5