Learn R Programming

denim (version 1.2.1)

d_weibull: Discrete Weibull distribution

Description

Discrete Weibull distribution

Usage

d_weibull(scale, shape, dist_init = FALSE)

Value

a Distribution object for simulator

Arguments

scale

scale parameter of a Weibull distribution

shape

shape parameter of a Weibull distribution

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_weibull(0.6, 2))
transitions <- denim_dsl({ I -> D = d_weibull(0.6, 2) })

Run the code above in your browser using DataLab