Skip to content

Conversation

@LibraChris
Copy link
Contributor

Fixes #349

Changes introduced in this PR

  • Fixed incorrect anovaType usage in twoWayANOVA.
  • Corrected F-test denominator assignments for each TwoWayAnovaModel type (Fixed, Random, Mixed).
  • Added tests for ANOVA model for both one-way and two-way models.

Description

This PR resolves incorrect F-test denominator assignments in the TwoWayAnovaModel implementation.
Previously:

  • Fixed case was using Random logic.
  • Random case was using Mixed logic.
  • Mixed case was using Fixed logic.

These errors resulted in incorrect statistical outputs. The logic has been corrected, and the test coverage ensures accurate results for all model types.

[Required] please make sure you checked that

  • [ x] The project builds without problems on your machine

[Optional]

  • [x ] Added unit tests regarding the added features

@bvenn bvenn mentioned this pull request Aug 11, 2025
2 tasks
@kMutagene
Copy link
Member

@LibraChris can you rebase this onto the latest datascience branch to clean up the commit history ?

- 'Fixed' case was incorrectly using Random logic
- 'Random' case was using Mixed logic
- 'Mixed' case was using Fixed logic

Corrected F-test denominator assignments for each TwoWayAnovaModel type.
@kMutagene kMutagene merged commit e9c7190 into fslaborg:datascience Oct 21, 2025
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