Skip to content

Commit

Permalink
new version with new implementations of algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytecode committed Oct 27, 2020
1 parent 3360a47 commit 2dc725f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LinRegOutliers"
uuid = "6d4de0fb-32d9-4c65-aac1-cc9ed8b94b1a"
authors = ["Mehmet Hakan Satman <[email protected]>", "Shreesh Adiga <[email protected]>"]
version = "0.6.0"
version = "0.7.0"

[deps]
Clustering = "aaaa29a8-35af-508c-8bc3-b662a17a0fe5"
Expand Down
4 changes: 2 additions & 2 deletions src/hadi1994.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ julia> multidata = hcat(hbk.x1, hbk.x2, hbk.x3);
julia> hadi1994(multidata)
Dict{Any,Any} with 3 entries:
"outliers" => [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
"criticial.chi.squared" => 7.81473
"critical.chi.squared" => 7.81473
"rth.robust.distance" => 5.04541
```
Expand Down Expand Up @@ -84,7 +84,7 @@ function hadi1994(multivariateData::Array{Float64,2}; alpha=0.05)

result = Dict()
result["outliers"] = sort(outlierset)
result["criticial.chi.squared"] = critical_quantile
result["critical.chi.squared"] = critical_quantile
result["rth.robust.distance"] = sorted_mah1[r - 1]
return result
end

0 comments on commit 2dc725f

Please sign in to comment.