We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sigma
MASS::mvrnorm
Usually, we use a symmetric matrix for the Sigma parameter of MASS::mvrnorm function.
# 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)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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)
The text was updated successfully, but these errors were encountered: