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 SampleSize output to pairwise_test_bin (the same way it is currently in pairwise_test_cont) #100

Open
lemireg opened this issue Jan 13, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@lemireg
Copy link

lemireg commented Jan 13, 2025

Add SampleSize output to pairwise_test_bin (the same way it is currently in pairwise_test_cont)

@lemireg lemireg added the enhancement New feature or request label Jan 13, 2025
@mayerbry
Copy link
Contributor

I do think it would would be nice if pairwise_test_bin could output ResponseStats separately as SampleSizes ResponderN WilsonCIs if needed.

One immediate post-hoc solution courtesy of chatGPT:

parse_bin_SampleSize <- function(ResponseStat_str) {
  result <- sub("^(\\d+)/\\d+.*vs\\.\\s(\\d+)/\\d+.*$", "\\1 vs. \\2", ResponseStat_str)
  return(result)
}
# using the ?pairwise_test_bin example
group_testing$SampleSizes = parse_bin_SampleSize(group_testing$ResponseStats)

Some notes on this enhancement: the backend code is fairly hard coded, see response_info_here_by_group in source code. This may require a little refactor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants