Returns descriptive statistics of a numeric vector.
UNIV(y, conf.level = 0.95)
count of all elements in the input vector
count of NA element
count of finite numbers
mean excluding NA
standard deviation excluding NA
coefficient of variation in percent
standard error of the sample mean, the sample mean divided by nFinite
lower confidence limit of given confidence interval
upper confidence limit of given confidence interval
trimmed mean with trimming 1 - confidence level
minimum value
first quartile value
median value
third quartile value
maximum value
range of finite numbers. maximum - minimum
inter-quartile range type 2, which is SAS default
mean absolute deviation
skewness
standard error of skewness
kurtosis
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.