R/Negative_Binomial.R

#' Negative Binomial Log Likelihood Function
#'
#' The log likelihood of a negative binomial density with data, x, size, prob
#' and mu parameters.
#'
#' @details The log likelihood is the log of a function of parameters given the data.
#'
#' @return A numeric scalar for the log likelihood of the negative binomial
#' density given the data where size, prob, and mu can be held constant or if
#' vector were given vector will be returned.
#'
#' @inheritParams stats::dnbinom
#' @export
#'
#' @include likelihood.R
#'
#' @examples liknbinom(x = rnbinom(n = 2, size = 3, prob = .4),
#'         size = 3, prob = .4, mu = NULL)
liknbinom <- likelihood(dnbinom)
BenBarnard/likelihoodExplore documentation built on Dec. 4, 2019, 4:38 p.m.