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

Add method dispatch for optimise_results class #44

Open
fredjaya opened this issue Jul 28, 2024 · 0 comments
Open

Add method dispatch for optimise_results class #44

fredjaya opened this issue Jul 28, 2024 · 0 comments

Comments

@fredjaya
Copy link
Collaborator

fredjaya commented Jul 28, 2024

Related to the pipeline of sample_design -> optimise_prevalence -> calculating pool_power or sample_size.

When an object of class sample_design has any NULL pool_size or pool_number, optimise_prevalence(x = sample_design, ...) needs to be run to infer them.

Method dispatches exist for sample_design and will only work when pool_size or pool_number are not NULL.

Method dispatches required for optimise_results in the case where sample_design have NULLs.

Steps to reproduce:

fd <- fixed_design()
opt <- optimise_prevalence(fd, correlation = 0.01, cost_unit = 1, cost_pool = 4, cost_cluster = 10, prevalence = 0.005)
pool_power(opt) # or sample_size(opt)
@fredjaya fredjaya changed the title Add method dispatch for `optimise_results Add method dispatch for optimise_results class Jul 28, 2024
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

1 participant