dot-convert_params_nbinom: Convert parameters of the negative binomial distribution to...

.convert_params_nbinomR Documentation

Convert parameters of the negative binomial distribution to summary statistics

Description

Convert the probability (prob) and dispersion parameters of the negative binomial distribution to a number of summary statistics which can be calculated analytically given the negative binomial parameters. One exception is the median which is calculated using qnbinom() as no analytical form is available.

The parameters are prob and dispersion (which is also commonly represented as r).

Usage

.convert_params_nbinom(...)

Arguments

...

<dynamic-dots> Numeric named parameter(s) used to convert to summary statistics. An example is the meanlog and sdlog parameters of the lognormal (lnorm) distribution.

Value

A list of eight elements including: mean, median, mode, variance (var), standard deviation (sd), coefficient of variation (cv), skewness, and ex_kurtosis.


epiparameter documentation built on April 3, 2025, 5:50 p.m.