rethinking (version 1.59)

postcheck: Plot posterior predictive check

Description

Plots a series of graphical posterior predictive checks for a map or map2stan model fit.

Usage

postcheck( fit , prob=0.9 , window=20 , n=1000 , col=rangi2 , ... )

Arguments

fit

A map or map2stan model fit

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 plot

Value

Details

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.

See Also

link, sim