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

`tfromw`

1 |

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

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