Learn R Programming

popKorn (version 0.3-0)

optimalLambda: Derive the optimal lambda

Description

Derives the optimal lambda for a given alpha.

Usage

optimalLambda(alpha, n, p, k = 1, var.known = TRUE)

Arguments

alpha
The desired confidence coefficient.
n
The number of replications per population.
p
The number of populations considered. This must be present if min.loc is equal to 'zero'.
k
The number of populations selected.
var.known
A logical flag indicating if the variance of the observations is known exactly. It is TRUE by default.

Value

The function returns a scalar value.

Details

This will find the optimal lambda to be used for the shrinkage of confidence intervals.

See Also

optimalC