freq_above_thresh_vec: Vectorizes the freq_above_thresh for the number of detected

Description Usage Arguments Value

Description

Called from the get_epidemic_prob_by_d

Usage

1
2
freq_above_thresh_vec(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

vector of detected 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 vector of epidemic probs for the given detected values.


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