Merged
Conversation
…de all metrics desird, and pingouin required pandas >= 2.1.1, incompatible with KNIME bundled pandas 2.03. Upgrade led to statsmodel breaking
…y and difference is negligible.
fe8be05 to
3b1f271
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Repeated Measures ANOVA node for KNIME for the one-factor repeated-measures case.
The node compares the same participants across multiple conditions or time points, supports both long and wide input layouts, and provides:
Design decisions
Why statsmodels alone was not selected
statsmodels.stats.anova.AnovaRMwas evaluated first, but its output is intentionally minimal. It returns only core fields (F, df, p-value). The KNIME node requires additional reporting fields such as:Why pingouin was not selected
pingouinintroduced a dependency conflict within theknime-python-base 5.10.0environment. Specifically, it requirespandas >= 2.1.1, whereas our stable environment pinspandasto2.0.3. Upgrading pandas would break compatibility with existing nodes in the scientific stack.Implementation approach
The node computes the missing statistics manually using NumPy and SciPy to maintain environment stability.
Main pieces:
Core formulas
For a one-way repeated-measures ANOVA with$n$ participants and $k$ conditions:
Degrees of freedom
Mean squares
F statistic
Partial eta squared
Greenhouse–Geisser correction
If sphericity is violated, degrees of freedom are adjusted using$\epsilon_{GG}$ :
The corrected p-value is then computed from the observed F statistic using the adjusted degrees of freedom.
Output behavior
Basic output
Concise summary: corrected p-value, effect size, and significance conclusion.
Advanced output
Full statistical breakdown including factor/error rows, Mauchly’s test values, and both uncorrected and corrected p-values.
Testing
Reused the pytest-based validation approach to verify:
Notes
This implementation maintains alignment with the KNIME-supported dependency set while delivering the diagnostics missing from the built-in statsmodels output.