Skip to content

Commit

Permalink
Use the absolute values of correlation coefficents to calculate avera…
Browse files Browse the repository at this point in the history
…ge component weights
  • Loading branch information
jasenfinch committed Nov 2, 2023
1 parent 73342eb commit 9991103
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/components.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ calcComponents <- function(graph_nodes,
filter(Component == .x) %>%
edges() %>%
.$coefficient %>%
abs() %>%
mean() %>%
tibble(Weight = .)
},graph = graph) %>%
Expand Down

0 comments on commit 9991103

Please sign in to comment.