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

View source: R/logconcens.R

loglikeR Documentation

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)

Arguments

lcd

an object of class lcdensity

Value

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

Author(s)

Dominic Schuhmacher dominic.schuhmacher@mathematik.uni-goettingen.de
Kaspar Rufibach kaspar.rufibach@gmail.com
Lutz Duembgen duembgen@stat.unibe.ch

See Also

logcon

Examples

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

logconcens documentation built on Aug. 19, 2023, 5:12 p.m.