# Obtain data
wmt <- depression[,24:44]
# Obtain correlation matrix
wmt_R <- auto.correlate(wmt)
# Estimate network
wmt_network <- network.estimation(wmt_R, n = nrow(wmt))
# Obtain adjacency
wmt_A <- wmt_network
wmt_A[] <- ifelse(wmt_A != 0, 1, 0)
# Obtain unregularized estimate
wmt_unreg <- known.graph(S = wmt_R, A = wmt_A)
Run the code above in your browser using DataLab