Given a value or vector *x* of values, find the value(s) of the function
*beta(x) = g(x)/phi(x) - 1 *,
where *g* is the convolution of the Laplace density with scale parameter *a* with with the normal density *phi(x)*.

1 | ```
beta.laplace(x, a = 0.5)
``` |

`x` |
the value or vector of data values |

`a` |
the scale parameter of the Laplace distribution |

A vector 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))
beta.laplace(c(-2,1,0,-4,8,50), a=1)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.