gen_net: Generate True Partial Correlation Matrix
Description
Generate True Partial Correlation Matrix
Usage
gen_net(p = 20, edge_prob = 0.3, lb = 0.05, ub = 0.3)
Arguments
p
number of variables (nodes)
lb
lower bound for the partial correlations
ub
upper bound for the partial correlations
Value
A list with the true structure, adjacency matrix, and correlation matrix.
Examples
Run this code# NOT RUN {
true_net <- gen_net(p = 10)
# }
Run the code above in your browser using DataLab