Plot Prior Distributions
Plots prior distributions for group means, standard deviation, and correlations of MPT parameters across participants.
plotPrior(prior, probitInverse = "mean", M = 5000, nCPU = 3, ...)
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 |
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).
## 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,.1)", beta = "dgamma(1,.1)"), M=4000) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.