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

Deprecate fi_pool internals #7

Closed fredjaya closed 11 months ago

fredjaya commented 11 months ago
          Another point this highlights is that perhaps ```fi_pool``` and ```fi_ratio``` are superfluous as they aren't really called by any user-facing functions. In particular ```fi_ratio``` is kind of just another way of viewing ```design_effect_cluster_fisher```. ```fi_pool``` is just a special case of ```fi_pool_imperfect```. Could we perhaps get rid of the two superfluous functions and then rename ```fi_pool_imperfect``` to ```fi_pool```?

Originally posted by @AngusMcLure in https://github.com/AngusMcLure/PoolPoweR/issues/6#issuecomment-1797163154

AngusMcLure commented 11 months ago

The more I looked at the figure in #6, the more name changes I see.

I also suggest we change

fredjaya commented 11 months ago

Oops, would have broken a few optimise_prevalence.R functions when changing the fi_pool function names, which are unaccounted for in current tests.

Next, write basic unit tests for the following functions, mainly to catch any errors when renaming/updating:

Rename fi_pool_imperfect to fi_pool in:

Then:

(messy but good enough for my reference) dep

AngusMcLure commented 11 months ago

I've used other IDEs that let you change functions signature across a whole project automatically. I don't think Rstudio has this, but Ctrl+Shift+F will probably let you find and replace the names throughout?

fredjaya commented 11 months ago

That should be all. Let me know if anything else should be amended, otherwise good to close the issue for now. dep