covidcalcyield: Estimate COVID-19 testing yield under a number of strategies

Description Usage Arguments Examples

View source: R/covidyieldfns.R

Description

This function summarizes results across multiple strategies

Usage

1
2
3
4
5
6
7
8
covidcalcyield(
  data,
  y,
  strategies,
  weight = "No Weights",
  cluster = "No Clusters",
  stratlabels = NULL
)

Arguments

data

Input dataset

y

indicator that COVID-19 test is positive

weight

name of weight variable, defaults to "No Weights"

cluster

name of variable indicating clusters, defaults to "No Clusters"

stratlabels

optional vector of strategy labels to improve readability

strategyind

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

strata

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

Examples

1
covidcalcyield(data = mydata, y = "COVID-19", strategies = c("str1", "str2", "str3"), stratlabels = c("All venues", "Some other strategy", "Another one"), weight="weight", cluster = "sitespotid")

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