pcEffect {patterncausality} | R Documentation |
The pcEffect
function processes a pattern causality matrix to compute and summarize the effects of positive, negative, and dark causality. It aggregates these causality measures to determine the total received and exerted influence for each item in the matrix, along with the difference between them.
pcEffect(pcmatrix)
pcmatrix |
A list containing three matrices ( |
A list containing three data frames (positive
, negative
, and dark
), each summarizing the causality effects. Each data frame includes columns for the received, exerted, and the difference (Diff
) of causality for each item.
data(climate_indices)
dataset <- climate_indices[,-1]
pcmatrix <- pcMatrix(dataset, E = 3, tau = 1, metric = "euclidean", h = 1, weighted = TRUE)
effects <- pcEffect(pcmatrix)
print(effects)