edge.inv.direc: Calculates the differences in edge weight for each network...

View source: R/SourceCodePTNWNeu.R

edge.inv.direcR Documentation

Calculates the differences in edge weight for each network edge

Description

This function calculates the differences in edge weight for each edge between two networks (adjacency matrices of the same dimension).

Usage

edge.inv.direc(A, B)

Arguments

A, B

adjacency matrices of the same dimension

Details

This function calculates the differences in edge weight for each edge between two networks (adjacency matrices of the same dimension). In particular, it takes account of potentially different directions (signs) of the edge weights (associations) when deriving the differences. Differences in edge weight are one of the edge-specific network difference characteristics to compare two networks.

Value

a symmetric N \times N matrix, with N denoting the number of nodes, containing the differences in edge weight between two respective nodes

Examples

A<-create.adjacency.matrix(ExDataA,methodlist=list("Spearman"))
B<-create.adjacency.matrix(ExDataB,methodlist=list("Spearman"))
edge.inv.direc(A,B)

RomanSchefzik/DNT documentation built on Sept. 11, 2022, 10:29 p.m.