samplesize | R Documentation |
This function calculates the sample size needed to obtain at least a defined false discovery rate given
a final outbreak size N
.
samplesize(eta, chi, N, R = NULL, phi, min_pairs = 1, assumption = "mtml")
eta |
scalar or vector giving the sensitivity of the linkage criteria |
chi |
scalar or vector giving the specificity of the linkage criteria |
N |
scalar or vector giving the final outbreak size |
R |
scalar or vector giving the effective reproductive number of the pathogen |
phi |
scalar or vector giving the desired true discovery rate (1-false discovery rate) |
min_pairs |
minimum number of linked pairs observed in the sample, defaults to 1 pair (2 samples); this is to ensure reasonable results are obtained |
assumption |
a character vector indicating which assumptions about transmission and linkage criteria. Default =
|
scalar or vector giving the sample size needed to meet the given conditions
John Giles, Shirlee Wohl, and Justin Lessler
samplesize(eta=0.99, chi=0.995, N=100, R=1, phi=0.75)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.