loglike: Compute log-likelihood for an object of class 'lcdensity'.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/logconcens.R

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

1
loglike(lcd)

Arguments

lcd

an object of class lcdensity

Value

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

Author(s)

Dominic Schuhmacher [email protected]
Kaspar Rufibach [email protected]
Lutz Duembgen [email protected]

See Also

logcon

Examples

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

logconcens documentation built on May 30, 2017, 7:47 a.m.