Statistics Toolbox
  Go to function:
    Search    Help Desk 
gamlike    Examples   See Also

Negative gamma log-likelihood function.

Syntax

Description

logL = gamlike(params,data) returns the negative of the gamma log-likelihood function for the parameters, params, given data. The length of the vector, logL, is the length of the vector, data.

[logL,info] = gamlike(params,data) adds Fisher's information matrix, info. The diagonal elements of info are the asymptotic variances of their respective parameters.

gamlike is a utility function for maximum likelihood estimation of the gamma distribution. Since gamlike returns the negative gamma log-likelihood function, minimizing gamlike using fmins is the same as maximizing the likelihood.

Example

Continuing the example for gamfit:

See Also



[ Previous | Help Desk | Next ]