Created
April 8, 2018 10:55
-
-
Save SachaEpskamp/80c930fd0aa441123d81a9c23d6616ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(qgraph) | |
library(bootnet) | |
net <- genGGM(10) | |
Sigma <- cov2cor(solve(diag(10) - net)) | |
D <- diag(1, 10) # Change the value here to add or remove measurment error | |
qgraph(Sigma + D, graph = "pcor") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment