AngusMcLure / PoolPoweR

Power and sample size calculations for surveys using pool testing (AKA group testing)
GNU General Public License v3.0
0 stars 1 forks source link

design_effect fixed pool_size #39

Closed fredjaya closed 5 months ago

fredjaya commented 5 months ago

Example usage of design_effect after refactoring sample_design/fi_pool:

sample_design <- sample_design(pool_size = 5, pool_number = 10, sensitivity  = 0.99, specificity = 0.95)
design_effect(sample_design, prevalence = 0.01, correlation = 0.05)

However in design_effect(), pool_size = 1 :

...
pool_number * pool_size * fi_pool(pool_size = 1, prevalence, sensitivity, specificity)
...

Need to think about how to deal with this.

fredjaya commented 5 months ago

Will leave fi_pool etc. as a function for now