powered by
Compute the log-likelihood of a probability distribution given data
log_likelihood(d, x, ...)
A probability distribution object such as those created by a call to Bernoulli(), Beta(), or Binomial().
Bernoulli()
Beta()
Binomial()
A vector of data to compute the likelihood.
Unused. Unevaluated arguments will generate a warning to catch mispellings or other possible errors.
the log-likelihood
# NOT RUN { X <- Normal() log_likelihood(X, c(-1, 0, 0, 0, 3)) # }
Run the code above in your browser using DataLab