chilam_norm: Half-length Solver under Normality Assumption

Description Usage Arguments Value Examples

View source: R/solver.R

Description

Solves for the half-length corresponding to a shrinkage factor, using the function gnB_norm.

Usage

1
chilam_norm(lam, xvec, alpha, Jn, Jn2)

Arguments

lam

a scalar shrinkage factor λ.

xvec

normalized observed outcome vector, corresponding to z_i in the paper.

alpha

desired level of non-coverage probability.

Jn

the order of polynomial approximation to be used for series estimation.

Jn2

the total order of polynomial approximation.

Value

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

Examples

1
2
3
4
thvec <- rnorm(50)
xvec <- rnorm(50, thvec)
chilam_norm(0.6, xvec, 0.05, 2, 4)
chilam_norm(0.4, xvec, 0.05, 2, 4)

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