new_dist_spec {EpiNow2}R Documentation

Internal function for generating a dist_spec given parameters and a distribution.

Description

[Experimental] This will convert all parameters to natural parameters before generating a dist_spec. If they have uncertainty this will be done using sampling.

Usage

new_dist_spec(params, distribution)

Arguments

params

Parameters of the distribution (including max)

distribution

Character; the distribution to use.

Value

A dist_spec of the given specification.

Examples

new_dist_spec(
  params = list(mean = 2, sd = 1, max = Inf),
  distribution = "normal"
)

[Package EpiNow2 version 1.5.2 Index]