Learn R Programming

distr6 (version 1.3.1)

iqr: Distribution Interquartile Range

Description

Interquartile range of a distribution

Usage

iqr(object)

Arguments

object

Distribution.

Value

Interquartile range of distribution as a numeric.

R6 Usage

$iqr()

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.