Skip to content

Usually, we use a symmetric matrix for the Sigma parameter of MASS::mvrnorm function. #30

@danli349

Description

@danli349

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions