Description Usage Arguments Details Value Examples
Given the number of vertices, the probability that any two vertices connect, and the sample size, generate the true graph structure and the sample data.
1 |
p |
number of vertices |
pE |
probability that two vertices will connect |
n |
sample size for data generation |
effS |
the effect size, must be a single number - - default is
|
The true graph structure is generated such that the probability of having an edge for any pair of vertices is p_E = d_0/p, where d_0 is average number of edges per node. Then, all graphs with p vertices and d edges have probability of p_E^d(1-p_E)^{\choose(d, 2) -d} to be generated. After we generate the adjacency matrix A, the sample data are simulated from the multivariate normal distribution with mean 0 and covariance
(I - B)^{-1}(I-B^T)^{-1}
where B = the effect size \times the lower triangular matrix of A.
A list with the following components:
adjacency matrix of the simulated graph
simulated sample data
simulated graph as a graphNEL object
1 | genER(10, 0.1, 20, 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.