Statistics: logllike

### Function Reference: `logllike`

statistics: nlogL = logllike (params, x)
statistics: [nlogL, acov] = logllike (params, x)
statistics: […] = logllike (params, x, censor)
statistics: […] = logllike (params, x, censor, freq)

Negative log-likelihood for the log-logistic distribution.

`nlogL = logllike (params, x)` returns the negative log likelihood of the data in x corresponding to the log-logistic distribution with (1) scale parameter a and (2) shape parameter b given in the two-element vector params.

`[nlogL, acov] = logllike (params, x)` also returns the inverse of Fisher’s information matrix, acov. If the input parameter values in params are the maximum likelihood estimates, the diagonal elements of params are their asymptotic variances.

`[…] = logllike (params, x, censor)` accepts a boolean vector, censor, of the same size as x with `1`s for observations that are right-censored and `0`s for observations that are observed exactly. By default, or if left empty, `censor = zeros (size (x))`.

`[…] = logllike (params, x, censor, freq)` accepts a frequency vector, freq, of the same size as x. freq typically contains integer frequencies for the corresponding elements in x, but it can contain any non-integer non-negative values. By default, or if left empty, `freq = ones (size (x))`.

Further information about the log-logistic distribution can be found at https://en.wikipedia.org/wiki/Log-logistic_distribution

MATLAB compatibility: MATLAB uses an alternative parameterization given by the pair μ, s, i.e. mu and s, in analogy with the logistic distribution. Their relation to the a and b parameters is given below:

- `a = exp (mu)`
- `b = 1 / s`

See also: loglcdf, loglinv, loglpdf, loglrnd, loglfit

Source Code: logllike