View source: R/posterior_diagnostics.R
computeLogLik | R Documentation |
Compute log-likelihood
computeLogLik(out, verbose = FALSE, addthin = 1)
out |
Output from BSTFA or BSTFAfull. |
verbose |
Logical scalar indicating whether to print status of the log-likelihood computation. Default is |
addthin |
Numeric scalar indicating the number of additional draws to thin by to reduce the computation time. Default is |
A matrix of size n.times*n.locs
by draws
log-likelihood values for each observation and each posterior draw.
Adam Simpson and Candace Berrett
data(out.sm)
attach(out.sm)
loglik <- computeLogLik(out.sm, addthin=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.