plotPrior {TreeBUGS} | R Documentation |
Plot Prior Distributions
Description
Plots prior distributions for group means, standard deviation, and correlations of MPT parameters across participants.
Usage
plotPrior(prior, probitInverse = "mean", M = 5000, nCPU = 3, ...)
Arguments
prior |
a named list defining the priors. For the traitMPT, the
default is |
probitInverse |
which latent-probit parameters (for
|
M |
number of random samples to approximate priors of group-level parameters |
nCPU |
number of CPUs used for parallel sampling. For large models and many participants, this may require a lot of memory. |
... |
further arguments passed to |
Details
This function samples from a set of hyperpriors (either for
hierarchical traitMPT or betaMPT structure) to approximate the implied
prior distributions on the parameters of interest (group-level mean, SD,
and correlations of MPT parameters). Note that the normal distribution
"dnorm(mu,prec)"
is parameterized as in JAGS by the mean and
precision (= 1/variance).
See Also
Examples
## Not run:
# default priors for traitMPT:
plotPrior(list(
mu = "dnorm(0, 1)",
xi = "dunif(0, 10)",
V = diag(2),
df = 2 + 1
), M = 4000)
# default priors for betaMPT:
plotPrior(list(
alpha = "dgamma(1, 0.1)",
beta = "dgamma(1, 0.1)"
), M = 4000)
## End(Not run)