apply_default_cdf_cutoff: Apply default CDF cutoff to a <dist_spec> if it is...

View source: R/opts.R

apply_default_cdf_cutoffR Documentation

Apply default CDF cutoff to a <dist_spec> if it is unconstrained

Description

Apply default CDF cutoff to a <dist_spec> if it is unconstrained

Usage

apply_default_cdf_cutoff(dist, default_cdf_cutoff, cdf_cutoff_set)

Arguments

dist

A <dist_spec>

default_cdf_cutoff

Numeric; default CDF cutoff to be used if an unconstrained distribution is passed as dist. If dist is already constrained by having a maximum or CDF cutoff this is ignored.

cdf_cutoff_set

Logical; whether the default CDF cutoff has been set by the user; if yes and dist is constrained a warning is issued

Value

A <dist_spec> with the default CDF cutoff set if previously not constrained


EpiNow2 documentation built on Oct. 3, 2024, 1:07 a.m.