Learn R Programming

logconcens (version 0.17-4)

loglike: Compute Log-Likelihood for an Object of Class lcdensity

Description

Compute the (normalized) log-likelihood for an object of class lcdensity as described in the details section for the function logcon. The main use of this function is for comparing different results from logcon based on different (starting) domains.

Usage

loglike(lcd)

Value

A single numeric value, the (normalized) log-likelihood.

Arguments

lcd

an object of class lcdensity

See Also

logcon

Examples

Run this code
  x <- matrix(c(0,0.5,0.5,1,1,2,3,3),4,2)
  res <- logcon(x)
  loglike(res)

Run the code above in your browser using DataLab