postcheck: Plot posterior predictive check

View source: R/postcheck.r

postcheckR Documentation

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

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.

Author(s)

Richard McElreath

See Also

link, sim


rmcelreath/rethinking documentation built on Aug. 26, 2024, 5:54 p.m.