Last chance! 50% off unlimited learning
Sale ends in
Computes descriptive statistics from a vector of numbers.
epi.descriptives(dat, conf.level = 0.95)
vector for which descriptive statistics will be calculated.
magnitude of the returned confidence intervals. Must be a single number between 0 and 1.
A list containing the following:
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.
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.
skewness
and kurtosis
.
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