likelihood: The (log) likelihood of a sample matching a distribution
Description
![[Stable]](figures/lifecycle-stable.svg?package=distributional&version=0.3.2)
Usage
likelihood(x, ...)# S3 method for 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.