SIQR: Calculate semi-interquartile range

View source: R/fmsb.R

SIQRR Documentation

Calculate semi-interquartile range

Description

Calculate semi-interquartile range, using IQR or fivenum.

Usage

 SIQR(X, mode) 

Arguments

X

a numeric vector.

mode

If 1, using fivenum, otherwise using IQR function. Default is 1.

Value

A numeric vector of length 1, giving the semi-interquartile range.

Author(s)

Minato Nakazawa minatonakazawa@gmail.com https://minato.sip21c.org/

Examples

 data <- rnorm(100, 10, 1)
 SIQR(data)
 SIQR(data, 2)
 sd(data)
 idata <- sample(50:80, 100, replace=TRUE)
 SIQR(idata)
 SIQR(idata, 2)
 sd(idata)

fmsb documentation built on May 29, 2024, 2:02 a.m.

Related to SIQR in fmsb...