Learn R Programming

sasLM (version 0.6.6)

UNIV: Univariate Descriptive Statistics

Description

Returns descriptive statistics of a numeric vector.

Usage

UNIV(x, conf.level = 0.95)

Arguments

x

a numeric vector

conf.level

confidence level for confidence limit

Value

nAll

count of all element 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, sample mean divided by nFinite

LowerConfLimit

lower confidence limit of given confidence interval

UpperConfLimit

upper confidence limit of given confidence interval

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

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.

Details

A convenient and comprehensive descriptive statistics. NA is removed during the calculation. This is similar to SAS PROC UNIVARIATE.

Examples

Run this code
# NOT RUN {
  UNIV(lh)
# }

Run the code above in your browser using DataLab