ll {estimators} | R Documentation |
Log-Likelihood
Description
These functions calculate the log-likelihood of an IID sample for specific values of the distribution parameters. See Details.
Usage
ll(x, prm, distr, ...)
## S4 method for signature 'ANY,ANY,character'
ll(x, prm, distr, ...)
llbern(x, prob)
llbinom(x, size, prob)
llcat(x, prob)
llcauchy(x, location, scale)
lldirichlet(x, alpha)
llexp(x, rate)
llgamma(x, shape, scale)
llgeom(x, prob)
lllaplace(x, mu, sigma)
lllnorm(x, meanlog, sdlog)
llMultinom(x, size, prob)
llnbinom(x, size, prob)
llnorm(x, mean, sd)
llpois(x, lambda)
llunif(x, min, max)
llweib(x, shape, scale)
Arguments
x |
numeric. A sample under estimation. |
prm |
numeric. A vector of the distribution parameters. |
distr |
A subclass of |
... |
extra arguments. |
location , alpha , mu , sigma , meanlog , sdlog , min , max , size , prob , shape , rate , scale , mean , sd , lambda |
numeric. Distribution parameters. |
Details
The log-likelihood functions are provided in two forms: the ll<name>
distribution-specific version that follows the base R conventions, and the
S4 generic ll
.
Value
Numeric. The value of the log-likelihood function.
[Package estimators version 0.8.5 Index]