phat = nbinfit(x)
[phat, pci] = nbinfit(x, alpha, censoring, freq, options)
| Parameter | Description |
|---|---|
| x | nonnegative integer finite real nonempty vector or matrix: observed failures. |
| alpha | scalar in the range [0, 1]: significance level. Default is 0.05. |
| censoring | array with values 0 or 1. Default is all zeros. |
| freq | nonnegative finite array of observation frequencies. Default is all ones. |
| options | structure created by statset. MaxIter and TolX are used. |
| Parameter | Description |
|---|---|
| phat | array: estimates of r and p. |
| pci | array: confidence intervals for r and p. |
nbinfit estimates the negative binomial distribution parameters.
x = [0 1 2 4 6 9 12 15];
[phat, pci] = nbinfit(x);
| Version | Description |
|---|---|
| 2.0.0 | initial version |