Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

SIQR

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)

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

Functions for Medical Statistics Book with some Demographic Data

v0.7.1
GPL (>= 2)
Authors
Minato Nakazawa <minato-nakazawa@umin.net>
Initial release
2021-05-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.