# NOT RUN {
# This is an example of HGMND with simulated data
data(HGMND_SimuData)
h <- genscore::get_h_hp("mcp", 1, 5)
HGMND_SimuData <- lapply(HGMND_SimuData, function(x) scale(x, center = FALSE))
mat.chain <- diag(length(HGMND_SimuData))
diag(mat.chain[-nrow(mat.chain), -1]) <- 1
result <- HGMND(x = HGMND_SimuData,
setting = "gaussian",
h = h,
centered = FALSE,
mat.adj = mat.chain,
lambda1 = 0.086,
lambda2 = 3.6,
gamma = 1,
tol = 1e-3,
silent = TRUE)
Theta <- result[["Theta"]]
res.cluster <- getCluster(result)
# }
Run the code above in your browser using DataLab