Description Usage Arguments Examples
View source: R/covidyieldfns.R
This function computes COVID-19 testing yield for a specific strategy
1 2 3 4 5 6 7 8 | covidyieldstrategy(
data,
y,
strategyind,
strata = NULL,
weight = "No Weights",
cluster = "No Clusters"
)
|
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) |
1 | covidyieldstrategy(data = mydata, y = "covid", strategyind = "s1", strata = "sex", weight = "personweight", cluster = "venue")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.