gen_net: Simulate a Partial Correlation Matrix
Description
Simulate a Partial Correlation Matrix
Usage
gen_net(p = 20, edge_prob = 0.3, lb = 0.05, ub = 0.3)
Value
A list containing the following:
pcor: Partial correlation matrix, encoding
the conditional (in)dependence structure.
cors: Correlation matrix.
adj: Adjacency matrix.
trys: Number of attempts to obtain a
positive definite matrix.
Arguments
- p
number of variables (nodes)
- edge_prob
connectivity
- lb
lower bound for the partial correlations
- ub
upper bound for the partial correlations