log_likelihood: Compute the log-likelihood of a probability distribution...

Description Usage Arguments Value Examples

View source: R/methods.R

Description

Compute the log-likelihood of a probability distribution given data

Usage

1

Arguments

d

A probability distribution object such as those created by a call to Bernoulli(), Beta(), or Binomial().

x

A vector of data to compute the likelihood.

...

Unused. Unevaluated arguments will generate a warning to catch mispellings or other possible errors.

Value

the log-likelihood

Examples

1
2
3
X <- Normal()

log_likelihood(X, c(-1, 0, 0, 0, 3))

distributions3 documentation built on Sept. 3, 2019, 5:06 p.m.