-
Notifications
You must be signed in to change notification settings - Fork 607
/
Copy pathpostcheck.Rd
32 lines (31 loc) · 1.09 KB
/
postcheck.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
\name{postcheck}
\alias{postcheck}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Plot posterior predictive check}
\description{
Plots a series of graphical posterior predictive checks for a \code{map} or \code{map2stan} model fit.
}
\usage{
postcheck( fit , prob=0.9 , window=20 , n=1000 , col=rangi2 , ... )
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{fit}{A \code{map} or \code{map2stan} model fit}
\item{prob}{Width of prediction interval to display}
\item{window}{Number of cases to display in each plot (for paging)}
\item{n}{Number of samples from posterior to use}
\item{...}{Additional arguments to pass to \code{plot}}
}
\details{
This function uses \code{\link{link}} and \code{\link{sim}} internally to simulate posterior predictions for a fit model. These are then plotted over the observed outcomes used in fitting.
}
\value{
}
\references{}
\author{Richard McElreath}
\seealso{\code{\link{link}}, \code{\link{sim}}}
\examples{
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ }