median_width: Calculate empirical median width of a matrix of confidence...

Description Usage Arguments Value Examples

Description

Calculate empirical median width of a matrix of confidence intervals.

Usage

1
median_width(conf_intervals)

Arguments

conf_intervals

Matrix of confidence intervals in which each row is a CI, the first column is the lower confidence limit, and the second column is the upper confidence limit.

Value

Empirical median width of the confidence intervals.

Examples

1
2
3
4
xbar <- replicate(1000, mean(rnorm(25)))
ME <- qnorm(0.975) / 5
CIs <- cbind(xbar - ME, xbar + ME)
median_width(CIs)

fditraglia/fmscr documentation built on May 16, 2019, 12:10 p.m.