-
Notifications
You must be signed in to change notification settings - Fork 607
/
Copy pathHPDI.Rd
34 lines (32 loc) · 980 Bytes
/
HPDI.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\name{HPDI}
\alias{PI}
\alias{HPDI}
\alias{PCI}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Confidence/credible intervals from samples}
\description{
These functions compute highest posterior density (HPDI) and percentile (PI) intervals, using samples from a posterior density or simulated outcomes.
}
\usage{
HPDI( samples , prob=0.89 )
PI( samples , prob=0.89 )
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{samples}{Vector of parameter values}
\item{prob}{interval probability mass}
}
\details{
Highest Posterior Density Intervals (HPDI) are calculated by \code{\link{HPDinterval}} in the \code{coda} package.
Percentile intervals (PI) use \code{\link{quantile}} and assign equal mass to each tail.
}
\value{
}
\references{}
\author{Richard McElreath}
\seealso{\code{\link{HPDinterval}}}
\examples{
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ }