Learn R Programming

BSTFA (version 0.1.0)

computeLogLik: Compute log-likelihood

Description

Compute log-likelihood

Usage

computeLogLik(out, verbose = FALSE, addthin = 1)

Value

A matrix of size n.times*n.locs by draws log-likelihood values for each observation and each posterior draw.

Arguments

out

Output from BSTFA or BSTFAfull.

verbose

Logical scalar indicating whether to print status of the log-likelihood computation. Default is FALSE.

addthin

Numeric scalar indicating the number of additional draws to thin by to reduce the computation time. Default is 1 (no additional thinning).

Author

Adam Simpson and Candace Berrett

Examples

Run this code
data(out.sm)
attach(out.sm)
loglik <- computeLogLik(out.sm, addthin=2)

Run the code above in your browser using DataLab