Skip to content

Commit 4114dd0

Browse files
committed
tighten logic in hypothesis checking
1 parent 949a1c9 commit 4114dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/get_p_value.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ two_sided_p_value <- function(vec, obs_stat) {
257257
check_hypotheses_align <- function(x, obs_stat) {
258258
if (is_hypothesized(x) &&
259259
is_hypothesized(obs_stat) &&
260-
attr(x, "params") != attr(obs_stat, "params")) {
260+
any(attr(x, "params") != attr(obs_stat, "params"))) {
261261
warning_glue(
262262
"`x` and `obs_stat` were generated using different null hypotheses. ",
263263
"This workflow is untested and results may not mean what you think ",

0 commit comments

Comments
 (0)