expand_percent: Expands truth for percents

Description Usage Arguments Value

View source: R/expand_truth.R

Description

Expands truth for percents

Usage

1
2
expand_percent(truth, percent_expand, challenge = "ilinet",
  expand_by_percent = F, percent_observed = 0.1)

Arguments

truth

A data.frame with a single row and, at minimum, columns unit and value

percent_expand

The number of percent bins to expand around the observed truth. If expand_by_percent = TRUE then this value is ignored.

challenge

one of "ilinet", "hospital" or "state_ili", indicating which challenge the submission is for.

expand_by_percent

A logical value indicating whether to expand truth around percent or rate targets by a percentage of the observed value.

percent_observed

A scalar numeric between 0 and 1, indicating the one-sided percentage of the observed percent or rate target that will be included. If expand_by_percent = FALSE then this value is ignored.

Value

A data.frame with the same columns as 'truth' but additional rows around the observed value.


jarad/FluSight documentation built on Oct. 24, 2020, 9:58 p.m.