Learn R Programming

rstanarm (version 2.9.0-1)

ppcheck: ppcheck (deprecated)

Description

ppcheck is deprecated and will be removed in the near future. Use pp_check instead.

Usage

ppcheck(object, check = "distributions", nreps = NULL, overlay = TRUE,
  test = "mean", ...)

Arguments

object
A fitted model object returned by one of the rstanarm modeling functions. See stanreg-objects.
check
The type of plot (possibly abbreviated) to show. One of "distributions", "residuals", "scatter", "test". See Details for descriptions.
nreps
The number of $y^{rep}$ datasets to generate from the posterior predictive distribution (posterior_predict) and show in the plots. The default is nreps=3 for check="residuals"
overlay
For check="distributions" only, should distributions be plotted as density estimates overlaid in a single plot (TRUE, the default) or as separate histograms (FALSE)?
test
For check="test" only, a character vector (of length 1 or 2) naming a single function or a pair of functions. The function(s) should take a vector input and return a scalar test statistic. See Details.
...
Optional arguments to geoms to control features of the plots (e.g. binwidth if the plot is a histogram).