summary-stats: Summary statistics

Description Usage Arguments Details Author(s) Examples

Description

Miscellaneous summary statistics.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## summary statistics
summary_stats(x, hpd = FALSE, na.rm = FALSE)

## mean and 95% CI
mean_ci(x, ...)

## highest posterior density interval
hpd(x, alpha)

## standard error of the mean
sem(x, ...)

## coefficient of variation
cv(x, ...)

Arguments

x

Numerical vector.

hpd

Logical indicating whether highest posterior density intervals should be calculated (TRUE) or equal tail intervals (FALSE).

na.rm

Logical indicating whether NA values should be stripped before the computation proceeds.

alpha

Specifies the 100*(1 - alpha)% interval to compute.

...

Other arguments to be passed to other methods.

Details

SEM is defined as SD / sqrt(n), with n the number of observations; CV is defined as SD / mean.

Author(s)

Brecht.Devleesschauwer@UGent.be

Examples

1
2
3
4
5
6
x <- rnorm(100)
summary_stats(x)
mean_ci(x)
hpd(x)
sem(x)
cv(x)

brechtdv/bd documentation built on June 19, 2019, 8:53 p.m.