Given a threshold value, find the mixing weight for which this is the threshold of the posterior median estimator. If a vector of threshold values is provided, the vector of corresponding weights is returned.

1 | ```
wfromt(tt, prior = "laplace", a = 0.5)
``` |

`tt` |
threshold value or vector of values |

`prior` |
specification of prior to be used; can be |

`a` |
scale factor if Laplace prior is used. Ignored if Cauchy prior is used. |

The numerical value or vector of values of the corresponding weight is returned.

Bernard Silverman

See `ebayesthresh`

and http://www.bernardsilverman.com

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.