MakePredictionsFromCG: make predictions from CG

Description Usage Arguments Value Examples

View source: R/MakePredictionsFromCG.r

Description

Create a matrix of predictions for a particular hypothesis - the output is a matrix containing the relationship between each node and the hypothesis. The hypothesis provided will be the vertex id of one of the nodes in the network (as an integer). The signOfHypothesis variable should be a 1 or -1, indicating up/down regulation

Usage

1
2
MakePredictionsFromCG(hypothesisnode, signOfHypothesis, network, delta,
  nodesInExperimentalData = NULL)

Arguments

hypothesisnode

a hypothesis node

signOfHypothesis

the direction of change of hypothesis node

network

a computational causal graph

delta

the number of edges across which the hypothesis should be followed

nodesInExperimentalData

the number of nodes in experimental data

Value

an matrix containing the relationship between each node and the hypothesis

Examples

1
2
3
network <- system.file(package='CausalR', 'extdata', 'testNetwork.sif')
cg <- CreateCG(network)
MakePredictionsFromCG('NodeA', +1, cg, 2)

CausalR documentation built on Nov. 8, 2020, 5:25 p.m.