Skip to content

Commit

Permalink
fix for infoCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexChristensen committed Nov 11, 2023
1 parent e9a7d2f commit b229e7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/infoCluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ infoCluster <- function(dynEGA.object, plot.cluster = TRUE)
# Compute Cohen's d
cohens_d <- d(
jsd_matrix[lower_triangle],
jsd_random_matrix[lower_triangle],
jsd_rewired_matrix[lower_triangle],
paired = TRUE
)

# Check for empirical JSD > random JSD OR non-significant t-test
# Check for empirical JSD > rewired JSD OR non-significant t-test
if(comparison_sign == 1 || abs(cohens_d) < 0.20){

# Set clusters to all individuals
Expand Down

0 comments on commit b229e7e

Please sign in to comment.