beta.laplace {EbayesThresh} | R Documentation |
Function beta for the Laplace prior
Description
Given a single value or a vector of and
, find the
value(s) of the function
, where
is the
normal density with mean 0 and standard deviation
, and
is the convolution of the Laplace density with scale parameter
,
, with the normal density
with mean
and standard deviation
.
Usage
beta.laplace(x, s = 1, a = 0.5)
Arguments
x |
the value or vector of data values |
s |
the value or vector of standard deviations; if vector, must
have the same length as |
a |
the scale parameter of the Laplace distribution |
Value
A vector of the same length as x
is returned,
containing the value(s) .
Note
The Laplace density is given by and is also known as the
double exponential density.
Author(s)
Bernard Silverman
References
See ebayesthresh
and
http://www.bernardsilverman.com
See Also
Examples
beta.laplace(c(-2,1,0,-4,8,50), s=1)
beta.laplace(c(-2,1,0,-4,8,50), s=1:6, a=1)
[Package EbayesThresh version 1.4-12 Index]