interpret_ihist: Interprets an ihist into daily likelihoods

Description Usage Arguments Examples

View source: R/result_interpretation.R

Description

Given a range of interest and an individual's diagnostic history, compute the likelihood that each day in the range was the day of infection. This produces the output in long format.

Usage

1
interpret_ihist(ihist, range_start, range_end, verbose = FALSE)

Arguments

ihist

The diagnostic history for an individual.

range_start

The earliest day of interest.

range_end

The latest day of interest.

verbose

Should verbose output be printed during the computation?

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ihist <- data.frame(
  ptid = c('p0', 'p0'),
  sample_date = c('2016-03-01', '2016-09-01'),
  test = c('step_unit_testing', 'step_unit_testing'),
  result = c('-', '+'),
  stringsAsFactors = FALSE
)
range_start <- as.Date('2016-01-01')
range_end <- as.Date('2016-12-01')
interpret_ihist(ihist = ihist, range_start = range_start, range_end = range_end, verbose = TRUE)

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