covidyieldstrategy: A function to estimate yield and NNT from each strategy

Description Usage Arguments Examples

View source: R/covidyieldfns.R

Description

This function computes COVID-19 testing yield for a specific strategy

Usage

1
2
3
4
5
6
7
8
covidyieldstrategy(
  data,
  y,
  strategyind,
  strata = NULL,
  weight = "No Weights",
  cluster = "No Clusters"
)

Arguments

data

Input dataset with one record per individual not previously diagnosed with COVID-19

y

name of variable with indicator that COVID-19 test is positive

strategyind

name of variable indicating whether or not a specific person would be tested under a given strategy

strata

name of variable with values of variable to be stratified by (defaults to NULL)

weight

name of variable with respondent weights (e.g., survey sampling weight), if applicable (defaults to NA)

cluster

name of variable with cluster IDs, if applicable (defaults to NULL)

Examples

1
covidyieldstrategy(data = mydata, y = "covid", strategyind = "s1", strata = "sex", weight = "personweight", cluster = "venue")

dbogojevich/covidyield documentation built on Dec. 31, 2020, 11:14 p.m.