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