likelihood: The (log) likelihood of a sample matching a distribution

likelihoodR Documentation

The (log) likelihood of a sample matching a distribution

Description

[Stable]

Usage

likelihood(x, ...)

## S3 method for class 'distribution'
likelihood(x, sample, ..., log = FALSE)

log_likelihood(x, ...)

Arguments

x

The distribution(s).

...

Additional arguments used by methods.

sample

A list of sampled values to compare to distribution(s).

log

If TRUE, the log-likelihood will be computed.


distributional documentation built on March 31, 2023, 7:12 p.m.