chilam_orc: Oracle Half-length Solver

Description Usage Arguments Details Value Examples

View source: R/solver.R

Description

Solves for the half-length corresponding to a shrinkage factor, when the true mean vector is known.

Usage

1
chilam_orc(lam, th_vec, alpha)

Arguments

lam

a scalar shrinkage factor λ.

th_vec

a normalized mean vector.

alpha

desired level of non-coverage probability.

Details

This function was created for the purpose of simulations.

Value

the value of the half-length χ which gives the correct coverage given the value of lam.

Examples

1
2
th_vec <- rnorm(50)
chilam_orc(0.4, th_vec, 0.05)

koohyun-kwon/OptACI documentation built on Oct. 6, 2020, 8:09 a.m.