Skip to content

Commit

Permalink
Pass alternative parameter in corrected t-test (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
fraimondo authored Jan 19, 2024
1 parent eb6ea4d commit ffc61ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changes/newsfragments/245.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `alternative` parameter not being used in the corrected t-test `Fede Raimondo`_
6 changes: 5 additions & 1 deletion julearn/stats/corrected_ttest.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,11 @@ def corrected_ttest(
df2 = k_scores[to_keep]
differences = df1 - df2
t_stat, p_val = _compute_corrected_ttest(
differences, n_train=n_train, n_test=n_test, df=df
differences,
n_train=n_train,
n_test=n_test,
df=df,
alternative=alternative,
)
stat_df = t_stat.to_frame("t-stat")
stat_df["p-val"] = p_val
Expand Down

0 comments on commit ffc61ac

Please sign in to comment.