[Feature Request] X² test for 2×2 contingency tables
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- fsharp
- Domain
- data
Research direction
Start by locating the existing X² test implementation in the FSharp.Stats repository and read how its public API and tests are organized. Use the linked Cochran–Mantel–Haenszel and four-field test references to define the 2×2 variant. Done means the repository provides a usable 2×2 contingency-table test alongside the existing X² test.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
An often used variant of the X² (Chi-squared) test is that for 2×2 contingency tables (aka Cochran-Mantel-Haenszel test). Since the original X² test is already implemented, a version for 2×2 contingency tables can easily be implemented.
Describe the solution you'd like
Implement it.
Describe alternatives you've considered
Always write it yourself with the already existing X² test.
Additional context
https://en.wikipedia.org/wiki/Cochran%E2%80%93Mantel%E2%80%93Haenszel_statistics (eng)
https://de.wikipedia.org/wiki/Chi-Quadrat-Test#Vierfeldertest (ger)
- Dominant language
- F#
- Stars
- 228
- Forks
- 58
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fslaborg/FSharp.Stats
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
fslaborg/FSharp.Stats#385 · 2 comments ·
-
automation Documentation repo-assist
Difficulty 4/5 3-5 days Newbie friendliness 20/100
fslaborg/FSharp.Stats#390 ·
-
automation Documentation repo-assist
Difficulty 1/5 Under an hour Newbie friendliness 1/100
fslaborg/FSharp.Stats#382 ·
-
question
Difficulty 5/5 Over a week Newbie friendliness 25/100
fslaborg/FSharp.Stats#355 · 18 comments ·
-
enhancement needs investigation
Difficulty 4/5 3-5 days Newbie friendliness 45/100
fslaborg/FSharp.Stats#344 · 4 comments ·
All issues in fslaborg/FSharp.Stats
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
objectionary/eo-graphs#80 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
objectionary/sodg.rs#301 ·
-
area:space-accuracy good first issue track:data
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Sara-Managed-Projects/space-radar#904 ·
Maintainers usually reply within 1 day