plotPostPred: Plots for Posterior Predictive checks.

Description Usage Arguments Value Author(s) References Examples

View source: R/plotPostPred.R

Description

Plots a number (default 30) of credible t-distributions based on posterior values of the mean, standard deviation, and normality for each group, together with histograms of the data.

Usage

1
plotPostPred(BESTobj, nCurvesToPlot = 30, mainColor="skyblue", dataColor="red")

Arguments

BESTobj

an object of class BEST, as produced by the function BESTmcmc.

nCurvesToPlot

the number of posterior predictive curves to plot.

mainColor

an optional color name such as "skyblue" or a RGB specification such as "#87CEEB" that controls the color of the posterior prediction lines.

dataColor

an optional color name such as "red" or a RGB specification such as "#FF0000" that controls the color of the data histogram.

Value

Nothing, used for its side effect.

Author(s)

John Kruschke, modified by Mike Meredith.

References

Kruschke, J. K. 2013. Bayesian estimation supersedes the t test. Journal of Experimental Psychology: General 142(2):573-603. doi: 10.1037/a0029146

Examples

1
## See examples in BEST-package.

BEST documentation built on Oct. 13, 2021, 9:08 a.m.