Description Usage Arguments Value Examples
powder
Runs power posterior sampling using differential evolution markov chain monte carlo
1 2 3 4 5 |
model |
See |
data |
A list of data where each element is the data for a specific subject |
num.temps |
Number of temperatures (i.e. number of power posteriors to sample from) |
alpha |
controls the temperature schedule. 0.3 is recommended. |
high.temps.first |
If true, then the posterior will be sampled from first, followed by lower temperature posteriors. If false, then the prior will be sampled from first, followed by higher temperature posteriors. |
n.sequences |
This is useful for running parallel power posteriors. If |
current.sequence |
If n.sequences > 1, then |
n.samples |
The number of samples to draw from each power posterior |
n.chains |
The number of chains to use. By default, |
burnin |
The number of samples to discard when computing the marginal likelihood. These samples are included in the raw output. |
meltin |
The power posteriors are sampled sequentially. When moving to the next power posterior, the sampling process
takes some time to adapt to the new power posterior. |
de_params |
A list containing the following options for DE-MCMC. See Turner et al. (2013) for details.
|
method |
A character vector that specifies the type of sampling to be performed and accepts one of the following:
|
return.samples |
If true, return subject and group-level samples. Otherwise, return only the log likelihoods from each power posterior. |
verbose |
Display progress |
update |
Number of iterations between progress display updates |
A list with the following elements.
log.like.list
A list containing the log likelihoods for each temperature
theta
An array containing the subject-level samples
phi
An array containing the group-level samples
Note, if return.samples = FALSE
then only log.like.list
will be returned.
1 2 3 4 5 6 7 8 | ## Not run:
model = LBA.Individual$new(b=T)
data('individual',package='powder')
pow.out = powder(data=individual, model=model, num.temps=30)
est = marginal.likelihood(pow.out)
print(est)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.