laplace.threshzero {ebayesthresh}R Documentation

Objective function for Laplace threshold

Description

The objective function that has to be zeroed to find the posterior median threshold when the Laplace prior is used

Usage

laplace.threshzero(x, w, a = 0.5)

Arguments

x vector of putative threshold values
w vector of prior probabilities that parameter is nonzero (can be scalar)
a scale parameter of the Laplace part of the prior

Details

The function is called by the routine tfromw which finds the threshold for particular weight(s) w.

Value

vector of objective function values

Note

The routine assumes that a <= 20 and truncates a to 20 if any larger value is supplied.

Author(s)

Bernard Silverman

References

See ebayesthresh and http://www.bernardsilverman.com

See Also

cauchy.threshzero, tfromw


[Package Contents]