[ede2d4]: / man / log_lik.hsstan.Rd

Download this file

31 lines (27 with data), 793 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postestimation.R
\name{log_lik.hsstan}
\alias{log_lik.hsstan}
\alias{log_lik}
\title{Pointwise log-likelihood}
\usage{
\method{log_lik}{hsstan}(object, newdata = NULL, ...)
}
\arguments{
\item{object}{An object of class \code{hsstan}.}
\item{newdata}{Optional data frame to use to evaluate the log-likelihood.
If \code{NULL} (default), the model matrix is used.}
\item{...}{Currently ignored.}
}
\value{
A matrix of size \code{S} by \code{N}, where \code{S} is number of draws from the posterior
distribution, and \code{N} is the number of data points.
}
\description{
Compute the pointwise log-likelihood.
}
\examples{
\dontshow{utils::example("hsstan", echo=FALSE)}
# continued from ?hsstan
log_lik(hs.biom)
}