Learn R Programming

epiR (version 0.9-82)

epi.descriptives: Descriptive statistics

Description

Computes descriptive statistics from a vector of numbers.

Usage

epi.descriptives(dat, conf.level = 0.95)

Arguments

dat

vector for which descriptive statistics will be calculated.

conf.level

magnitude of the returned confidence intervals. Must be a single number between 0 and 1.

Value

A list containing the following:

arithmetic

n number of observations, mean arithmetic mean, sd arithmetic standard deviation, q25 25th quantile, q50 50th quantile, q75 75th quantile, lower lower bound of the confidence interval, upper upper bound of the confidence interval, min minimum value, max maximum value, and na number of missing values.

geometric

n number of observations, mean geometric mean, sd geometric standard deviation, q25 25th quantile, q50 50th quantile, q75 75th quantile, lower lower bound of the confidence interval, upper upper bound of the confidence interval, min minimum value, max maximum value, and na number of missing values.

symmetry

skewness and kurtosis.

Examples

Run this code
id <- 1:1000
tmp <- rnorm(1000, mean = 0, sd = 1)
id <- sample(id, size = 20)
tmp[id] <- NA

epi.descriptives(tmp, conf.level = 0.95)

Run the code above in your browser using DataLab