Learn R Programming

Davies (version 1.1-5)

likelihood: likelihood for the Davies distribution

Description

Likelihood of observing data, on the hypothesis of their coming from a Davies distribution of parameters params. Function neg.log.likelihood() gives minus the loglikelihood

Usage

likelihood(params, data)

Arguments

params
Parameters of the Davies distribution
data
dataset for which the likelihood is computed

See Also

Davies

Examples

Run this code
p1 <- c(10,0.1, 0.1)
p2 <- c(10,0.4, 0.1)
data <- rdavies(100,p1)
likelihood(p1,data)
likelihood(p2,data)                 #should be smaller.
neg.log.likelihood(p1,rstupid(100)) #should be large negative.

Run the code above in your browser using DataLab