Skip to content

Conversation

mdhaber
Copy link

@mdhaber mdhaber commented Jun 11, 2024

Reference issue

scipygh-20934

What does this implement/fix?

Since I had to run the R code, I figured I would include it all together to make it easier for anyone to run. This allowed me to reduce the indent and whitespace. I went ahead and did the same for test_weighted_stouffer, added the reference statistic values, and tighted the tolerance from rtol=1-3 to the default.

Comment on lines +7975 to +7978
# Reference values computed using R `metap` `sumz`:
# options(digits=16)
# library(metap)
# x = c(0.01, 0.2, 0.3)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to replace these with what you had, "Same as no weights", if you prefer.

Copy link
Owner

@j-bowhay j-bowhay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks and yes forgot about that final rtol!

@j-bowhay j-bowhay merged commit 16b6a2d into j-bowhay:combine_pvalues_test_refactor Jun 11, 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

Successfully merging this pull request may close these issues.

2 participants