llike: The log-likelihood function

Description Usage Arguments Examples

View source: R/llike.R

Description

This function computes the value of the observed log-likelihood function either for a given parameter theta or for the sample distribution.

Usage

1
llike(counts, theta = NULL)

Arguments

counts

The array of counts of format (r[1],...,r[m])

theta

The vector of parameters in form of a list of size m+1, where the the first m entries are kxr[i] matrices of teh conditional distribution of an observed variable given the latent one. The last element is the vector of the marginal distribution of the latent variable. If not provided then the log-likelihood function at the sample distribution is computed.

Examples

1
llike(counts,theta=NULL)

pzwiernik/LatentClass documentation built on May 26, 2019, 11:35 a.m.