Open
Description
Probably for a future point:
julia> X = AbstractArray{Union{Float64, Missing}, 2}(randn(5, 7))
julia> X[1, 2] = missing
julia> X[3, 5] = missing
julia> cov(X)
7×7 Array{Union{Missing, Float64},2}:
0.323781 missing -0.235777 0.0266937 missing 0.460899 0.345166
missing missing missing missing missing missing missing
-0.235777 missing 1.44032 -1.2644 missing 0.39682 -0.442537
0.0266937 missing -1.2644 1.69334 missing -0.367602 -0.374397
missing missing missing missing missing missing missing
0.460899 missing 0.39682 -0.367602 missing 1.74075 0.614322
0.345166 missing -0.442537 -0.374397 missing 0.614322 2.00857
I don't think that's ideal (using both Statistics
and StatsBase
). See also covrob r package where a function to filter missing value can be provided.
It would seem pretty easy to at least implement
- fail if there are missing
- omit if there are missing (remove the corresponding obs)
And then maybe we could suggest imputing maybe via Impute.jl