-
Notifications
You must be signed in to change notification settings - Fork 10
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 a function for extracting a test statistic #24
base: main
Are you sure you want to change the base?
Conversation
This is added to StatsAPI rather than to HypothesisTests since StatsAPI also houses `HypothesisTest`, `pvalue`, and other relevant functionality. Defining this function will bring a resolution to the 7-year-old issue JuliaStats/HypothesisTests.jl#79, which has received a number of duplicates over the years, suggesting that it would be of general interest.
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #24 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 3
Lines 37 37
=========================================
Hits 37 37
☔ View full report in Codecov by Sentry. |
@nalimilan, did you have thoughts on the function name? I find |
I'm afraid |
I like |
|
Only two registered packages define a function called MixedAnova, AnovaBase, and WildBootTests all define a Amusingly, HypothesisTests defines |
So actually, wouldn't the generality of |
After a little bit of thinking, |
People often complain that we abuse generic functions by overloading them with methods which actually have little of nothing in common, so I though using a more specific name like Maybe ping the authors of the packages you mentioned to get their opinion? We definitely want all packages to use the same function so we need some of them to agree switching to the new function. |
I was not aware of this. What are other examples? |
I think present company have HypothesisTests covered and I don't think this is relevant for Hecke, but @yufongpeng for AnovaBase/MixedAnova, @droodman for WildBootTests, and @juliangehring for Bootstrap: hello! Thanks for contributing to the Julia ecosystem. We're thinking of introducing a function in StatsAPI which, if named generically, could be useful to your respective packages. For AnovaBase, MixedAnova, and WildBootTests, it would correspond to the function @yufongpeng and @droodman have called
This was originally motivated by the need for a generic accessor function to extract the value of a test statistic from a |
Since this function is for test statistics, I prefer a more specific name. |
I agree.
I'm happy to conform to any standards developed assuming it makes sense for
my package.
…On Fri, Aug 4, 2023, 10:11 PM Yu-Fong, Peng ***@***.***> wrote:
Since this function is for test statistics, I prefer a more specific name.
teststat or teststatistic is good, but statistic is too general.
—
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGB2Z2LUVMA6QXWRZTV33FDXTWTUDANCNFSM6AAAAAA24VSA3Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thank you @yufongpeng and @droodman for your input!
It isn't necessarily, that was just initial use case that prompted this discussion. Another notable example is Bootstrap, which defines a |
Probably the most problematic function is |
This is added to StatsAPI rather than to HypothesisTests since StatsAPI also houses
HypothesisTest
,pvalue
, and other relevant functionality.Defining this function will bring a resolution to the 7-year-old issue JuliaStats/HypothesisTests.jl#79, which has received a number of duplicates over the years, suggesting that it would be of general interest.
I considered the name
statistic
, and still rather prefer that (teststatistic
has too many s's and t's 😩), but wasn't sure whether it was insufficiently descriptive. I'd be interested in hearing thoughts both on naming and on whether this should be required forHypothesisTest
aspvalue
is or whether it should be optional (what I have currently).