Description Usage Arguments Examples
View source: R/covidyieldfns.R
This function summarizes results across multiple strategies
1 2 3 4 5 6 7 8 | covidcalcyield(
data,
y,
strategies,
weight = "No Weights",
cluster = "No Clusters",
stratlabels = NULL
)
|
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) |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.