get_coverage: Obtain coverage status from a result folder

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Obtain coverage status from a result folder

Usage

1
get_coverage(DIR_NPLCM, truth)

Arguments

DIR_NPLCM

Path to where Bayesian results are stored

truth

True etiologic fraction vector (must sum to 1) used to generate data.

Value

A logic vector of length as truth. 1 for covered; 0 for not.

Examples

1
2
3
4
5
6
## Not run: 
DIR_NPLCM <- "~/downloads/rep_1_kfit_2/"  
truth     <- c(0.5,0.2,0.15,0.1,0.05)
get_coverage(DIR_NPLCM,truth)

## End(Not run)

oslerinhealth/baker documentation built on May 22, 2021, 12:05 p.m.