Returns descriptive statistics of a numeric vector.
UNIV(y, conf.level = 0.95)
count of all elements in the input vector
count of NA elements
count of finite numbers
mean excluding NA
variance excluding NA
standard deviation excluding NA
coefficient of variation in percent
standard error of the sample mean, the sample standard deviation divided by the square root of nFinite
lower confidence limit of mean
upper confidence limit of mean
trimmed mean with a trimming proportion of 1 - confidence level
minimum value
first quartile value with quantile type 2, the SAS default
median value
third quartile value with quantile type 2, the SAS default
maximum value
range of finite numbers, maximum - minimum
interquartile range with quantile type 2, the SAS default
median absolute deviation
lower confidence limit of variance
upper confidence limit of variance
skewness
standard error of skewness
kurtosis
standard error of kurtosis
geometric mean, calculated only when all given values are positive.
geometric coefficient of variation in percent, calculated only when all given values are positive.
a numeric vector
confidence level for confidence limit
Kyun-Seop Bae k@acr.kr
A convenient and comprehensive function for descriptive statistics. NA is removed during the calculation. This is similar to SAS PROC UNIVARIATE.