powered by
Calculate semi-interquartile range, using IQR or fivenum.
SIQR(X, mode)
a numeric vector.
If 1, using fivenum, otherwise using IQR function. Default is 1.
A numeric vector of length 1, giving the semi-interquartile range.
# NOT RUN { 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) # }
Run the code above in your browser using DataLab