Learn R Programming

denim (version 1.2.1)

d_lognormal: Discrete log-normal distribution

Description

Discrete log-normal distribution

Usage

d_lognormal(mu, sigma, dist_init = FALSE)

Value

a Distribution object for simulator

Arguments

mu

location parameter or the ln mean

sigma

scale parameter or ln standard deviation

dist_init

whether to distribute initial value across subcompartments following this distribution. (default to FALSE, meaning init value is always in the first compartment)

Examples

Run this code
transitions <- list("I -> D" = d_lognormal(3, 0.6))
transitions <- denim_dsl({I -> D = d_lognormal(3, 0.6)})

Run the code above in your browser using DataLab