idealf: Compute quartiles based on ideal fourths

Description Usage Arguments Details Value Examples

Description

Compute quartiles based on ideal fourths

Usage

1
idealf(x, na.rm = FALSE)

Arguments

x

numeric vector whose quantiles are wanted.

na.rm

logical; if true, any NA and NaN's are removed from x before the quantiles are computed.

Details

The sample median divides the data into two parts: the lower half and the upper half after putting the observations in ascending order.

Quartiles are measures of location aimed at dividing data into four parts. This is done with two additional measures of location called the lower and upper quartiles. The median is sometimes called the middle quartile.

Roughly, the lower quartile is the median of the smaller half of the data and the upper quartile is the median of the upper half.

Value

The lower quantile and upper quantile

Examples

1
2
x <- c(-29.6, - 20.9, - 19.7, - 15.4, - 12.3, - 8.0, - 4.3, 0.8, 2.0, 6.2, 11.2, 25.0)
idealf(x)

shizidushu/fsrs documentation built on May 26, 2019, 4:32 a.m.