Calculate a credible interval from a numerically specified...

Calculates a lower, upper, or two-sided credible interval from the numerical posterior CDF.

1 | ```
credIntSamp(theta, conf = 0.95, type="twosided")
``` |

`theta` |
a sample from the posterior density |

`conf` |
the desired 'confidence' level |

`type` |
the type of interval to return, 'lower' = one sided lower bound, 'two-sided' = two - sided, or 'upper' = one sided upper bound. It is sufficient to use 'l','t' or 'u' |

This function uses linear interpolation to calculate bounds for points that may not be specified by CDF

a list containing the elements lower.bound, uppper.bound or both depending on type

1 2 3 4 5 |

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.