laplace.threshzero {ebayesthresh} | R Documentation |
The objective function that has to be zeroed to find the posterior median threshold when the Laplace prior is used
laplace.threshzero(x, w, a = 0.5)
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 |
The function is called by the routine tfromw
which finds the threshold for particular weight(s) w
.
vector of objective function values
The routine assumes that a <= 20 and truncates a to 20 if any larger value is supplied.
Bernard Silverman
See ebayesthresh
and http://www.bernardsilverman.com