Description Usage Arguments Value See Also
View source: R/internalFunctions.R
Finds the best-fit negative binomial distribution parameters for a given confidence interval and returns the size, prob parameters.
1 2 3 4 5 6 7 | identifyNegBinPars(
qLow,
qUpp,
alpha = 0.05,
initPars = c(10, 0.5),
maxiter = 1000
)
|
qLow |
The observed lower quantile. |
qUpp |
The observed upper quantile. |
alpha |
The confidence level; i.e. the desired coverage is 1-alpha. Defaults to 0.05. |
initPars |
A vector of length 2 giving the initial parameter values to start the optimisation; defaults to c(10,0.5). |
maxiter |
Maximum number of iterations for |
A vector of length 2 giving the 2 parameters size and prob for use with rnbinom/dnbinom/pnbinom/qnbinom.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.