plotPostPred: Plots for Posterior Predictive checks.
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
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.
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
Run this code# NOT RUN {
## See examples in BEST-package.
# }
Run the code above in your browser using DataLab