Description Usage Arguments Details Value Note Author(s) Examples

Calculate Bayesian credible intervals based on various types of information about the posterior distribution

1 2 |

`dist` |
character string giving the name of a distribution for which "d", "q", and "p" function exist, e.g. "beta" |

`parlist` |
list of parameters to pass to distribution functions |

`ranges` |
lower, middle, and upper values to bracket lower and upper boundaries of the credible interval |

`level` |
confidence level |

`eps` |
if |

`tol` |
tolerance on credible interval |

`verbose` |
if TRUE, return detailed information on the probability cutoff and realized area of the credible interval; if FALSE, just lower and upper bounds of the credible region |

`...` |
additional arguments to |

`pvec` |
numeric vector of parameter values |

`npost` |
numeric vector of posterior density values corresponding
to |

`tcredint`

gives credible intervals for a theoretical
posterior density with defined density, cumulative density, and
quantile functions; `ncredint`

gives credible intervals
for a numerical posterior density.

A numeric vector giving the credible interval.
If `verbose=FALSE`

, gives just lower and upper bounds;
if `verbose=TRUE`

, also gives
information on the probability cutoff and
realized area of the credible interval

For credible intervals from a sample (e.g. from
an MCMC run), see `HPDinterval`

in the `coda`

package.

Ben Bolker

1 2 3 4 5 |

```
lower upper p area
0.1145856 0.5639456 0.5771295 0.9500001
lower upper p area
0.1212121 0.5555556 0.6100000 0.9471975
```

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.