UNIV {sasLM} | R Documentation |
Univariate Descriptive Statistics
Description
Returns descriptive statistics of a numeric vector.
Usage
UNIV(y, conf.level = 0.95)
Arguments
y |
a numeric vector |
conf.level |
confidence level for confidence limit |
Details
A convenient and comprehensive function for descriptive statistics. NA is removed during the calculation. This is similar to SAS PROC UNIVARIATE.
Value
nAll |
count of all elements in the input vector |
nNA |
count of NA element |
nFinite |
count of finite numbers |
Mean |
mean excluding NA |
SD |
standard deviation excluding NA |
CV |
coefficient of variation in percent |
SEM |
standard error of the sample mean, the sample mean divided by nFinite |
LowerCL |
lower confidence limit of mean |
UpperCL |
upper confidence limit of mean |
TrimmedMean |
trimmed mean with trimming 1 - confidence level |
Min |
minimum value |
Q1 |
first quartile value |
Median |
median value |
Q3 |
third quartile value |
Max |
maximum value |
Range |
range of finite numbers. maximum - minimum |
IQR |
inter-quartile range type 2, which is SAS default |
MAD |
median absolute deviation |
VarLL |
lower confidence limit of variance |
VarUL |
upper confidence limit of variance |
Skewness |
skewness |
SkewnessSE |
standard error of skewness |
Kurtosis |
kurtosis |
KurtosisSE |
kurtosis |
GeometricMean |
geometric mean, calculated only when all given values are positive. |
GeometricCV |
geometric coefficient of variation in percent, calculated only when all given values are positive. |
Author(s)
Kyun-Seop Bae k@acr.kr
Examples
UNIV(lh)