bd-summary-stats | R Documentation |
Miscellaneous summary statistics.
## 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, ...)
x |
Numerical vector. |
hpd |
Logical indicating whether highest posterior density intervals should be calculated ( |
na.rm |
Logical indicating whether |
alpha |
Specifies the 100*(1 - alpha)% interval to compute. |
... |
Other arguments to be passed to other methods. |
SEM is defined as SD / sqrt(n), with n the number of observations; CV is defined as SD / mean.
Brecht.Devleesschauwer@UGent.be
x <- rnorm(100)
summary_stats(x)
mean_ci(x)
hpd(x)
sem(x)
cv(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.