demo/selectQE.R

# +++++++++++++++++++++++++++++++++++++++++++++++++
p=30
n=30
# simulate graph
eta=0.11
Gr <- simulateGraph(p,eta)
# simulate data
X <- rmvnorm(n, mean=rep(0,p), sigma=Gr$C)
# estimate graph
GQE <- selectQE(X)

# plot the result
library(network)
old.par <- par(no.readonly = TRUE)
par(mfrow=c(1,2))
gV <- network(Gr$G)
a<-plot(gV, usearrows = FALSE)
gQE <- network(GQE$G)
plot(gQE, usearrows = FALSE, coord=a)
par(old.par)

Try the GGMselect package in your browser

Any scripts or data that you put into this service are public.

GGMselect documentation built on Aug. 31, 2023, 5:06 p.m.