Closed fredjaya closed 11 months ago
The more I looked at the figure in #6, the more name changes I see.
I also suggest we change
unit_fi_cost_clustered
to cost_fi_cluster
unit_fi_cost
to cost_fi
design_effect_cluster_fisher
to design_effect
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:
unit_fi_cost_clustered()
design_effect_cluster_fisher()
unit_cost_fi()
Rename fi_pool_imperfect
to fi_pool
in:
unit_fi_cost_clustered()
design_effect_cluster_fisher()
unit_cost_fi()
Then:
design_effect_cluster_fisher()
, rename fi_pool_imperfect_cluster()
to fi_pool_cluster
(messy but good enough for my reference)
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?
That should be all. Let me know if anything else should be amended, otherwise good to close the issue for now.
Originally posted by @AngusMcLure in https://github.com/AngusMcLure/PoolPoweR/issues/6#issuecomment-1797163154
fi_pool_imperfect
fi_pool
fi_ratio
fi_pool_imperfect
tofi_pool
fi_pool_imperfect_cluster
tofi_pool_cluster