likelihood | R Documentation |
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
likelihood(params, data)
params |
Parameters of the Davies distribution |
data |
dataset for which the likelihood is computed |
Robin K. S. Hankin
Davies
p1 <- c(10, 0.1, 0.1) p2 <- c(10, 0.4, 0.1) d <- rdavies(100,p1) likelihood(p1,d) likelihood(p2,d) #should be smaller. neg.log.likelihood(p1,rstupid(100)) #should be large negative.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.