log.lik: Log-likelihood function

Description Usage Arguments Value

View source: R/log.lik.R

Description

Log-likelihood of the data under a Poisson distribution with log-linear model for the mean

Usage

1
2
## S3 method for class 'lik'
log(data, params, event)

Arguments

data

matrix of counts, with rows equal to the number of observations and columns equal to the number of categories

params

vector of the alpha, beta, and gamma parameters

event

vector of labels with one entry per row of data, where each entry identifies the event to which the corresponding row of data belongs

Value

total log-likelihood of the data under the current parameter values


wrbrooks/latent documentation built on May 4, 2019, 11:59 a.m.