Learn R Programming

distributions3 (version 0.1.2)

likelihood: Compute the likelihood of a probability distribution given data

Description

Compute the likelihood of a probability distribution given data

Usage

likelihood(d, x, ...)

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 likelihood

Examples

Run this code
# NOT RUN {
X <- Normal()

likelihood(X, c(-1, 0, 0, 0, 3))
# }

Run the code above in your browser using DataLab