shortest_CI: Calculate shortest two-sided confidence interval

Description Usage Arguments Value Examples

Description

Calculate shortest two-sided confidence interval

Usage

1
shortest_CI(x, size = 0.05, inc = 0.001)

Arguments

x

Vector of simulations from sampling distribution of an estimator.

size

One minus the desired coverage probability.

inc

Step size for grid over which width is minimized.

Value

Shortest (1 - size) * 100 percent interval based on the data provided.

Examples

1
2
x <- rnorm(1000)
shortest_CI(x)

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