nlogL = betalike(params, x)
[nlogL, avar] = betalike(params, x)
| Parameter | Description |
|---|---|
| params | two-element positive real vector: beta distribution shape parameters. |
| x | finite real nonempty array with values in the open interval (0, 1): sample data. |
| Parameter | Description |
|---|---|
| nlogL | scalar: negative log-likelihood. |
| avar | 2-by-2 array: asymptotic covariance estimate. |
betalike returns the negative log-likelihood for beta distribution data and the asymptotic covariance estimate.
x = [0.12 0.2 0.35 0.5 0.7 0.85];
[nlogL, avar] = betalike([1.5 1.8], x);
| Version | Description |
|---|---|
| 2.0.0 | initial version |