bisalike
Negative log-likelihood for the Birnbaum-Saunders distribution.
nlogL = bisalike (params, x)
returns the negative
log likelihood of the data in x corresponding to the Birnbaum-Saunders
distribution with (1) scale parameter beta and (2) shape parameter
gamma given in the two-element vector params.
[nlogL, acov] = bisalike (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.
[…] = bisalike (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))
.
[…] = bisalike (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 Birnbaum-Saunders distribution can be found at https://en.wikipedia.org/wiki/Birnbaum%E2%80%93Saunders_distribution
See also: bisacdf, bisainv, bisapdf, bisarnd, bisafit, bisastat
Source Code: bisalike