scaledMat | R Documentation |
Scale a square matrix to have unit diagonal elements.
scaledMat(x)
x |
A square matrix with positive diagonal elements |
Scaled matrix of x.
Min Jin Ha
###############################
# Simulate data
###############################
simulation <- simulateData(G = 100, etaA = 0.02, n = 50, r = 10)
dat <- simulation$data[[1L]]
correlation <- scaledMat(x = stats::cov(dat))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.