Sigma in mvrnormTo accommodate more types of Sigma in function mvrnorm.
mvrnorm2(
n,
mu,
sd,
Sigma = diag(x = sd^2, nrow = d, ncol = d),
row.prefix,
col.prefix,
...
)Function mvrnorm2() returns a double
Argument of parameter sd could be
Then a diagonal matrix with vector sd^2 on the diagonal elements
is used as the variance-covariance
matrix \(\Sigma\)