Skip to content
New issue

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

Inconsistency of matrix cov and cor in the presence of missing #183

Open
adienes opened this issue Dec 29, 2024 · 0 comments
Open

Inconsistency of matrix cov and cor in the presence of missing #183

adienes opened this issue Dec 29, 2024 · 0 comments

Comments

@adienes
Copy link

adienes commented Dec 29, 2024

julia> using Statistics

julia> x = [missing, 1, 2]; y = [-1, -2, -3];

julia> cor([x y])
2×2 Matrix{Union{Missing, Int64}}:
 1          missing
  missing  1

julia> cor([y x])
ERROR: MethodError:

would be fixed by JuliaLang/julia#56673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants