freq_above_thresh: Get frequency cases above cum threshold and prev threshold...

Description Usage Arguments Value

Description

Returns the frequency that cases were found to be above a threshold.

Usage

1
freq_above_thresh(df, detected, cum_threshold, prev_threshold, num_necessary)

Arguments

df

dataframe formatted output from get_cumcases_by_detects_all. Has one columns for detected, cum_infections, and max_prevalence.

detected

single integer number of interest

cum_threshold

cumulative threhold for epidemic classification

prev_threshold

prevalence threshold for epidemic classification

num_necessary

number of trials necessary for epi classification usually 1% of trials.

Value

a single probability of epidemic for single detected value.


sjfox/rtZIKVrisk documentation built on May 30, 2019, 12:04 a.m.