compute_daily_grid: Computes probability that infection was on each of a range of...

Description Usage Arguments Details

View source: R/interpretation_processing.R

Description

Given an aggregate curve, a range of dates and the total area under the curve compute a vector of probabilities so that each element reflects the probability that infection occurred on a specific day.

Usage

1
2
3
4
5
6
7
8
9
compute_daily_grid(
  agg_fun,
  tauc,
  range_start,
  range_end,
  end_mass_thresh = 1/1e+10,
  max_days_extend = 100,
  expansion_size = 20
)

Arguments

agg_fun

The aggregate curve associated with the ihist of interest as computed by construct_aggregate_interpreter.

tauc

The total area under the aggregate curve.

range_start

The start of the range over which daily probabilities should be computed.

range_end

The end of the range over which daily probabilities should be computed.

Details

If the amount of mass in the first (last) of the daily intervals exceeds the end_mass_thresh value, then another expansion_size daily blocks will be added to the front (back) of the interval until either the first (last) interval's mass no longer exceeds the end_mass_thresh value, or more than max_days_extend days was added to the interval.


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