ssNegBinPars: Compute the sum of squares between the theoretical and...

Description Usage Arguments Value See Also

View source: R/internalFunctions.R

Description

This is a helper function that compute the sum of squares between two theoretical and observed quantiles of a negative binomial distribution (typically the lower and upper bounds of a confidence interval). This function is for internal use to find the best-fit negative binomial distribution for a given confidence interval.

Usage

1
ssNegBinPars(sizeProbPars, qLow, qUpp, alpha = 0.05)

Arguments

sizeProbPars

The size and prob parameters of the theoretical negative binomial distribution.

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.

Value

A single number, the sum of squares.

See Also

identifyNegBinPars, optim, qnbinom


bootComb documentation built on Jan. 31, 2022, 1:07 a.m.