log_lik.hsstan {hsstan}R Documentation

Pointwise log-likelihood

Description

Compute the pointwise log-likelihood.

Usage

## S3 method for class 'hsstan'
log_lik(object, newdata = NULL, ...)

Arguments

object

An object of class hsstan.

newdata

Optional data frame to use to evaluate the log-likelihood. If NULL (default), the model matrix is used.

...

Currently ignored.

Value

A matrix of size S by N, where S is number of draws from the posterior distribution, and N is the number of data points.

Examples


# continued from ?hsstan
log_lik(hs.biom)


[Package hsstan version 0.8.2 Index]