NB_to_PLN: Negative Binomial to Poisson Log-Normal

View source: R/simulatePhyloPoissonLogNormal.R

NB_to_PLNR Documentation

Negative Binomial to Poisson Log-Normal

Description

From the parameters of a negative binomial (mean and dispersion), compute the parameters of a Poisson log-normal with the same expectation and variance.

Usage

NB_to_PLN(mean, dispersion)

Arguments

mean

mean of the negative binomial.

dispersion

dispersion of the negative binomial.

Value

A list, with:

log_means_pln

Mean of the Poisson log normal in the log space.

log_variances_pln

Variance of the Poisson log normal in the log space.


csoneson/compcodeR documentation built on Nov. 3, 2024, 6:05 a.m.