Description Usage Arguments Details Value Author(s) References See Also Examples
Given a vector of data and standard deviations (sd equals 1 for Cauchy prior), find the value or vector (heterogeneous sampling standard deviation with Laplace prior) of thresholds corresponding to the marginal maximum likelihood choice of weight.
1 2 |
x |
Vector of data. |
s |
A single value or a vector of standard deviations if the
Laplace prior is used. If a vector, must have the same length as
|
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. |
universalthresh |
If |
First, the routine wfromx
is called to find the estimated
weight. Then the routine tfromw
is used to find the
threshold. See the documentation for these routines for more details.
The numerical value or vector of the estimated thresholds is returned.
Bernard Silverman
See ebayesthresh
and
http://www.bernardsilverman.com
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.