Description Usage Arguments Value Note Author(s) References See Also Examples
Given a single value or a vector of x and s, find the value(s) of the function beta(x;s,a) = g(x;s,a)/fn(x;0,s) - 1 , where fn(x;0,s) is the normal density with mean 0 and standard deviation s, and g is the convolution of the Laplace density with inverse scale (rate) parameter a, gamma(mu; a), with the normal density fn(x;mu,s) with mean mu and standard deviation s.
1 | beta.laplace(x, s = 1, a = 0.5)
|
x |
Vector of data values. |
s |
Value or vector of standard deviations; if vector, must
have the same length as |
a |
Inverse scale (i.e., rate) parameter of the Laplace distribution. |
A vector of the same length as x
is returned,
containing the value(s) beta(x).
The Laplace density is given by gamma(u) = (a/2) exp(-a|u|) and is also known as the double exponential density.
Bernard Silverman
See ebayesthresh
and
http://www.bernardsilverman.com
1 2 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.