Interquartile range of a distribution

iqr(object)

Arguments

object

Distribution.

Value

Interquartile range of distribution as a numeric.

Details

The interquartile range of a distribution is defined by $$iqr_X = q(0.75) - q(0.25)$$ where q is the quantile, or inverse distribution function.

Returns error if the quantile function is missing.

R6 Usage

$iqr()