nlogL = poisslike(lambda, x)
[nlogL, avar] = poisslike(lambda, x)
| Parameter | Description |
|---|---|
| lambda | nonnegative scalar: Poisson rate parameter. |
| x | nonnegative integer finite real nonempty array: sample counts. |
| Parameter | Description |
|---|---|
| nlogL | scalar: negative log-likelihood. |
| avar | scalar: asymptotic variance estimate. |
poisslike returns the negative log-likelihood for Poisson distribution data and the asymptotic variance estimate.
x = [0 1 2 3 5 8];
[nlogL, avar] = poisslike(3, x);
| Version | Description |
|---|---|
| 2.0.0 | initial version |