Description Usage Arguments Details Value Author(s) References See Also Examples
Given a single value or a vector of weights (i.e. prior probabilities that the parameter is nonzero) and sampling standard deviations (sd equals 1 for Cauchy prior), find the corresponding threshold(s) under the specified prior.
1 2 3 4 5 | tfromw(w, s = 1, prior = "laplace", bayesfac = FALSE, a = 0.5)
laplace.threshzero(x, s = 1, w = 0.5, a = 0.5)
cauchy.threshzero(z, w)
|
x |
Parameter value passed to |
w |
Prior weight or vector of weights. |
s |
A single value or a vector of standard deviations if the
Laplace prior is used. If |
prior |
Specification of prior to be used; can be
|
bayesfac |
Specifies whether Bayes factor threshold should be used instead of posterior median threshold. |
a |
Scale factor if Laplace prior is used. Ignored if Cauchy prior is used. |
z |
The putative threshold vector for |
The Bayes factor method uses a threshold such that the posterior
probability of zero is exactly half if the data value is equal to the
threshold. If bayesfac
is set to FALSE
(the default) then
the threshold is that of the posterior median function given the data
value.
The routine carries out a binary search over each component of an
appropriate vector function, using the routine vecbinsolv
.
For the posterior median threshold, the function to be zeroed is
laplace.threshzero
or cauchy.threshzero
.
For the Bayes factor threshold, the corresponding functions are
beta.laplace
or beta.cauchy
.
The value or vector of values of the estimated threshold(s).
Bernard Silverman
See ebayesthresh
and
http://www.bernardsilverman.com
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.