simulateEigengeneNetwork: Simulate eigengene network from a causal model
Description
Simulates a set of eigengenes (vectors) from a given set of causal anchors and a causal matrix.Usage
simulateEigengeneNetwork(
causeMat,
anchorIndex, anchorVectors,
noise = 1,
verbose = 0, indent = 0)
Arguments
causeMat
causal matrix. The entry [i,j]
is the influence (path coefficient) of
vector j
on vector i
.
anchorIndex
specifies the indices of the anchor vectors.
anchorVectors
a matrix giving the actual anchor vectors as columns. Their number must
equal the length of anchorIndex
.
noise
standard deviation of the noise added to each simulated vector.
verbose
level of verbosity. 0 means silent.
indent
indentation for diagnostic messages. Zero means no indentation; each unit adds two
spaces.
Value
- A list with the following components:
- eigengenesgenerated eigengenes.
- causeMata copy of the input causal matrix
- levelsuseful for debugging. A vector with one entry for each eigengene giving the number
of generations of parents of the eigengene. Anchors have level 0, their direct causal children have
level 1 etc.
- anchorIndexa copy of the input
anchorIndex
.
Details
The algorithm starts with the anchor vectors and iteratively generates the rest from the path
coefficients given in the matrix causeMat
.