Skip to contents

[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 = Fixed(0), tolerance = 0.001)

Arguments

dist

A delay distribution or series of delay distributions reflecting the truncation generated using dist_spec() or estimate_truncation(). Default is fixed distribution with maximum 0, i.e. no truncation

tolerance

Numeric; the desired tolerance level.

Value

A <trunc_opts> object summarising the input truncation distribution.

Examples

# no truncation
trunc_opts()
#> - fixed value:
#>   0

# truncation dist
trunc_opts(dist = LogNormal(mean = 3, sd = 2, max = 10))
#> - lognormal distribution (max: 10):
#>   meanlog:
#>     0.91
#>   sdlog:
#>     0.61