| dpi_edges | R Documentation |
Decides which centroid-target edges survive the Data Processing Inequality
(DPI). Used by corto() on the original data and in every bootstrap, and
usable on its own with any list of correlation edges.
dpi_edges(
centroid,
target,
cor,
rule = c("target", "triangle"),
centroid_cor = NULL
)
centroid |
Character vector, the centroid (regulator) of each edge |
target |
Character vector, the target of each edge |
cor |
Numeric vector, the correlation of each edge |
rule |
|
centroid_cor |
Correlation matrix between centroids, with row and column
names; required for |
A logical vector, TRUE for the edges that survive
# Two centroids correlated with the same target. Under "target" only the
# stronger survives; under "triangle" both survive unless they are more
# correlated with each other than the weaker one is with the target.
cc <- matrix(c(1, 0.1, 0.1, 1), 2, dimnames = list(c("A", "B"), c("A", "B")))
dpi_edges(c("A", "B"), c("g", "g"), c(0.6, 0.4), rule = "target")
dpi_edges(c("A", "B"), c("g", "g"), c(0.6, 0.4), rule = "triangle", centroid_cor = cc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.