Open danli349 opened 1 year ago
Usually, we use a symmetric matrix for the Sigma parameter of MASS::mvrnorm function.
Sigma
MASS::mvrnorm
# Fixed correlation D_correlation = data.frame(MASS::mvrnorm(30, mu = c(0.9, 0.9), Sigma = matrix(c(1, 0.8, 1, 0.8), ncol = 2), empirical = TRUE)) # Correlated data
I think it should be Sigma = matrix(c(1, 0.8, 0.8, 0.8), ncol = 2)
Sigma = matrix(c(1, 0.8, 0.8, 0.8), ncol = 2)
Usually, we use a symmetric matrix for the
Sigma
parameter ofMASS::mvrnorm
function.I think it should be
Sigma = matrix(c(1, 0.8, 0.8, 0.8), ncol = 2)