Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 4, 2024
1 parent e192d76 commit 66249e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/plot.p_significance.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ data_plot.p_significance <- function(x,
}

# find out the probability mass larger or lower than the ROPE (outside)
p_mass_ht_rope <- sum(out$y[out$x > threshold[2]]) > (sum(out$y) / 2)
p_mass_lt_rope <- sum(out$y[out$x < threshold[1]]) > (sum(out$y) / 2)
p_mass_ht_rope <- sum(out$y[out$x > threshold[2]])
p_mass_lt_rope <- sum(out$y[out$x < threshold[1]])

# find out whether probability mass "above" ROPE is larger than the probability
# mass that is on the left (negative) side of the ROPE
Expand Down

0 comments on commit 66249e5

Please sign in to comment.