CVb: Critical values for CIs based on a biased Gaussian estimator.

Description Usage Arguments Value Examples

View source: R/bnm.R

Description

Computes the critical value cv_{1-alpha}(B) such that the confidence interval X\pm cv_{1-alpha}(B) will have coverage 1-alpha, where X is Normally distributed with variance equal to 1 and maximum bias at most B.

Usage

1
CVb(B, alpha = 0.05)

Arguments

B

Maximum bias, vector of non-negative numbers.

alpha

Determines CI level, 1-alpha. Needs to be between 0 and 1. Can be a vector of values.

Value

Data frame with the following columns:

bias

Value of bias as specified by bs

alpha

Value of α as specified by alpha

cv

Critical value

TeXDescription

LaTeX-friendly description of current row

Examples

1
2
3
# 90% critical value:
CVb(B = 1, alpha = 0.1)
CVb(B = c(0, 0.5, 1), alpha = c(0.05, 0.1))

kolesarm/RDHonest documentation built on Jan. 14, 2019, 7:04 a.m.