Learn R Programming

EpiNow2 (version 1.4.0)

trunc_opts: Truncation Distribution Options

Description

[Stable] Returns a truncation distribution formatted for usage by downstream functions. See estimate_truncation() for an approach to estimate these distributions.

Usage

trunc_opts(dist = dist_spec())

Value

A list summarising the input truncation distribution.

Arguments

dist

A delay distribution or series of delay distributions reflecting the truncation generated using dist_spec() or estimate_truncation(). Default is an empty call to dist_spec(), i.e. no truncation

Author

Sam Abbott

Sebastian Funk

See Also

convert_to_logmean convert_to_logsd bootstrapped_dist_fit dist_spec

Examples

Run this code
# no truncation
trunc_opts()

# truncation dist
trunc_opts(dist = dist_spec(mean = 3, sd = 2, max = 10))

Run the code above in your browser using DataLab