-
Notifications
You must be signed in to change notification settings - Fork 11
Add an abstract type HypothesisTest
#23
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
Conversation
This is currently defined in HypothesisTests. Defining the common supertype in this package would allow other packages to define their own hypothesis test types that are too specific and/or have too many dependencies to upstream to HypothesisTests. This could include, for example, the log-rank test for comparing Kaplan-Meier survival curves in Survival and the likelihood ratio test in StatsModels.
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #23 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 3
Lines 37 37
=========================================
Hits 37 37
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Makes sense, but how about documenting the expected API? Implementations should define |
Good idea. It didn't occur to me to do so; I basically just mimicked the structure of the
Yep. Anything else you can think of? Maybe |
Why would one need that, what are the benefits of having this common supertype? |
I'm not sure I understand the question. The benefits are the same as any other abstract supertype, e.g. useful fallback methods and documented interface expectations. Like how packages that define regression models use the type defined here. |
Most implementations in HypothesisTests.jl only define |
We could say that |
HypothesisTests takes the approach that the "HypothesisTest struct" contains already computed test statistics, and Would be nice if these design decisions by HypothesisTest weren't encoded in StatsAPI. |
In what way are those assumptions are encoded here as-is? Or if you just mean that it isn't encoded currently but shouldn't be, I'll note that I definitely don't intend to add language to the docstring that e.g. prescribes a particular structure for |
I'm talking about the comment
I thought this meant stating |
I figured I would just phrase it as something like "implementations should define a method for |
This is currently defined in HypothesisTests. Defining the common supertype in this package would allow other packages to define their own hypothesis test types that are too specific and/or have too many dependencies to upstream to HypothesisTests. This could include, for example, the log-rank test for comparing Kaplan-Meier survival curves in Survival and the likelihood ratio test in StatsModels.