powered by
Compute log-likelihood
computeLogLik(out, verbose = FALSE, addthin = 1)
A matrix of size n.times*n.locs by draws log-likelihood values for each observation and each posterior draw.
n.times*n.locs
draws
Output from BSTFA or BSTFAfull.
Logical scalar indicating whether to print status of the log-likelihood computation. Default is FALSE.
FALSE
Numeric scalar indicating the number of additional draws to thin by to reduce the computation time. Default is 1 (no additional thinning).
1
Adam Simpson and Candace Berrett
data(out.sm) attach(out.sm) loglik <- computeLogLik(out.sm, addthin=2)
Run the code above in your browser using DataLab