trim_range: Trims range on which to evaluate a function

Description Usage Arguments Details

View source: R/result_interpretation.R

Description

Because the duration of the trial is long and often the region in which the infection could plausibly have happened is small, the integratoin functions often produces zero. Since we know that any aggregate function that produces a probable infection interval shorted than 1 day is problematic, we can devise an easy scheme to remove large chunks from the range where the interpreter function is zero.

Usage

1
trim_range(fun, range_start, range_end, tol = 0)

Arguments

fun

The function that will dictate which portions of the range will get trimmed.

range_start

The lower bound of the initial range.

range_end

The upper bound of the initial range.

tol

How close to zero before we consider it equal to zero? Default = 0.

Details

Simply walk from the start to end in one day increments, if the likelihood is still zero, adjust the range_start to the current day. Likewise from range_end.


philliplab/tsic documentation built on June 26, 2020, 7:55 p.m.