Learn R Programming

CausalR (version 1.4.3)

MakePredictions: make predictions

Description

Creates a matrix of predictions for a particular hypothesis. The output is an array 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 node ID or name, including + or - for up/down regulation in the case of a CCG). The signOfHypothesis variable should be a 1 or -1, indicating up/down regulation.

Usage

MakePredictions(hypothesisnode, signOfHypothesis, network, delta, nodesInExperimentalData = NULL)

Arguments

hypothesisnode
the node in the causal graph from which predictions should be made. Can be either a (numerical) node ID or a (string) node name.
signOfHypothesis
whether the hypothesis node is up- or down-regulated. Should be +1 or -1.
network
a (Computational) Causal Graph, as an igraph.
delta
the distance to search within the causal graph.
nodesInExperimentalData
optional. Nodes to include in the output. Should be a list of node IDs.

Value

a matrix of predictions for the given particular hypothesis

Examples

Run this code
network <- system.file(package='CausalR', 'extdata', 'testNetwork.sif')
ccg <- CreateCCG(network)
predictions <- MakePredictions('NodeA', +1, ccg, 2)

Run the code above in your browser using DataLab