Description Usage Arguments Details Value Author(s) References See Also Examples
The function generates parameters for different types of edges based on the graph.
1 |
adjmat |
A m x m adjacency matrix (m is the number of total variables). The program automatically check whether the matrix is symmetric and positive. |
p |
The number of continous variables. |
q |
The number of binary variables. |
a |
Control overall magnitude of the non-zero parameters for edges connecting continuous variables. |
b |
Control overall magnitude of the non-zero parameters for edges connecting binary and continuous variables. |
c |
Control overall magnitude of the non-zero parameters for edges connecting binary variables. |
In order to generate simulation data, first generate the parameters. Once the adjacency matrix is given, we set all parameters corresponding to absent edges to 0. For the non-zero parameters, we set lambda
j, lambda
jk, eta
j to be positive or negative with equal probability and the absolute value of each
non-zero eta
j is drawn from the uniform distribution on the interval (0.9a, 1.1a) and each non-zero lambda
j or lambda
jk is from (0.9c,1.1c).
The program makes sure that all the probability values are not negative.
The function returns a paramter list.
Mingyu Qi, Tianxi Li
Jie Cheng, Tianxi Li, Elizaveta Levina, and Ji Zhu. (2017) High-dimensional Mixed Graphical Models. Journal of Computational and Graphical Statistics 26.2: 367-378, https://arxiv.org/pdf/1304.2810.pdf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.