Learn R Programming

BEST (version 0.5.3)

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)

Arguments

BESTobj

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

nCurvesToPlot

the number of posterior predictive curves to plot.

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