Description Usage Arguments Details Value Examples

This is a wrapper for `hdrcde::hdr`

. The highest density region is the
interval that covers `conf_level`

of the data and has the highest
average density. See:

1 |

`dist` |
A one-argument function |

`conf_level` |
A scalar between 0 and 1 |

`bounds` |
A length 2 vector of the bounds of the distribution's support |

Rob J Hyndman (1996) “Computing and graphing highest density regions”. American Statistician, 50, 120-126.

A length 2 vector of region endpoints

1 2 | ```
d1 <- update_prior(33, 50, P = 0.5, prior = stats::dunif)
dist_hdr(d1, 0.95)
``` |

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.