Learn R Programming

CausalR (version 1.4.3)

DetermineInteractionTypeOfPath: determine interaction type of path

Description

Determines the sign of a given path. Given a path and through the network, this function will determine if the path results in activation or inhibition. Activation is indicated by 1, inhibition by -1

Usage

DetermineInteractionTypeOfPath(network, nodesInPath)

Arguments

network
an igraph representing the network
nodesInPath
an ordered list of the nodes visited on the path - note that these contain numbers which use R's internal reference to the edges

Value

a signed integer representing the paths sign