plotPriorPost: Plot Prior vs. Posterior Distribution

View source: R/plotPriorPost.R

plotPriorPostR Documentation

Plot Prior vs. Posterior Distribution

Description

Allows to judge how much the data informed the parameter posterior distributions compared to the prior.

Usage

plotPriorPost(
  fittedModel,
  probitInverse = "mean",
  M = 2e+05,
  ci = 0.95,
  nCPU = 3,
  ...
)

Arguments

fittedModel

fitted latent-trait or beta MPT model (traitMPT, betaMPT)

probitInverse

which latent-probit parameters (for traitMPT model) to transform to probability scale. Either "none", "mean" (simple transformation \Phi(\mu)), or "mean_sd" (see probitInverse)

M

number of random samples to approximate prior distributions

ci

credibility interval indicated by vertical red lines

nCPU

number of CPUs used for parallel sampling. For large models and many participants, this may require a lot of memory.

...

arguments passed to boxplot

Details

Prior distributions are shown as blue, dashed lines, whereas posterior distributions are shown as solid, black lines.


TreeBUGS documentation built on May 31, 2023, 9:21 p.m.