Learn R Programming

tcR (version 2.2.4)

loglikelihood: Log-likelihood.

Description

Compute the log-likelihood of the given distribution or vector of counts.

Usage

loglikelihood(.data, .base = 2, .do.norm = NA, .laplace = 1e-12)

Arguments

.data

Vector for distribution or counts.

.base

Logarightm's base for the loglikelihood.

.do.norm

Parameter to the check.distribution function.

.laplace

Laplace correction, Parameter to the check.distribution function.

Value

Loglikelihood value.