Learn R Programming

superspreading (version 0.3.0)

dpoislnorm: Density of the poisson-lognormal compound distribution

Description

Density of the poisson-lognormal compound distribution

Usage

dpoislnorm(x, meanlog, sdlog)

Value

A numeric vector of the density of the poisson-lognormal distribution.

Arguments

x

A number for the quantile of the distribution.

meanlog

A number for the mean of the distribution on the log scale.

sdlog

A number for the standard deviation of the distribution on the log scale.

Details

The function is vectorised so a vector of quantiles can be input and the output will have an equal length.

Examples

Run this code
dpoislnorm(x = 10, meanlog = 1, sdlog = 2)
dpoislnorm(x = 1:10, meanlog = 1, sdlog = 2)

Run the code above in your browser using DataLab