log_lik.hsstan: Pointwise log-likelihood

Description Usage Arguments Value Examples

View source: R/postestimation.R

Description

Compute the pointwise log-likelihood.

Usage

1
2
## 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

1
2
# continued from ?hsstan
log_lik(hs.biom)

hsstan documentation built on Sept. 16, 2021, 9:11 a.m.