Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make function dependency graph #6

Closed
fredjaya opened this issue Nov 7, 2023 · 5 comments
Closed

Make function dependency graph #6

fredjaya opened this issue Nov 7, 2023 · 5 comments
Assignees

Comments

@fredjaya
Copy link
Collaborator

fredjaya commented Nov 7, 2023

Fred to have a look at DependenciesGraphs.

This should help identify internal functions (non-user facing, helpers) and help with:

@fredjaya fredjaya assigned fredjaya and AngusMcLure and unassigned fredjaya Nov 7, 2023
@AngusMcLure
Copy link
Owner

Looks like a useful tool and a good plan. The dependencies should be pretty straightforward currently I think, but this will be a useful tool to be across as the package gets more complicated (and for PoolTestR)

@AngusMcLure AngusMcLure assigned fredjaya and unassigned AngusMcLure Nov 7, 2023
@fredjaya
Copy link
Collaborator Author

fredjaya commented Nov 7, 2023

That was easy!

What are your thoughts on changing the input parameter names for the user-facing functions only? e.g. optimise_sN_prevalence, optimise_s_prevalence (any others?), and keep the parameter names for the internal functions as the greek notation?

image

@AngusMcLure
Copy link
Owner

This is a great tool, and the figure is really clear!

In terms of user-facing functions, I think design_effect_cluster_fisher should also be on the list.

However, though I can see the logic behind keeping the greek/math notation for the back end, I think I would prefer consistent notation throughout, with local aliasing as summarised in #1

@AngusMcLure
Copy link
Owner

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?

@fredjaya fredjaya mentioned this issue Nov 7, 2023
5 tasks
@AngusMcLure
Copy link
Owner

We could also then rename fi_pool_imperfect_cluster to fi_pool_cluster. Makes the name a bit shorter...

@fredjaya fredjaya closed this as completed Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants