| postcheck | R Documentation |
Plots a series of graphical posterior predictive checks for a map or map2stan model fit.
postcheck( fit , prob=0.9 , window=20 , n=1000 , col=rangi2 , ... )
fit |
A |
prob |
Width of prediction interval to display |
window |
Number of cases to display in each plot (for paging) |
n |
Number of samples from posterior to use |
... |
Additional arguments to pass to |
This function uses link and sim internally to simulate posterior predictions for a fit model. These are then plotted over the observed outcomes used in fitting.
Richard McElreath
link, sim
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.