Skip to content

Commit

Permalink
Set correct winsorising fraction.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzwanenburg committed Sep 21, 2024
1 parent 5d7218c commit 1dd5287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/Utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ huber_estimate <- function(x, k = 1.28, tol = 1E-4) {

} else {
# Fallback option based on winsorised distributions.
x <- winsor(x, fraction = 0.90)
x <- winsor(x, fraction = 0.10)
x <- x[is.finite(x)]

if(length(x) <= 1) {
Expand Down

0 comments on commit 1dd5287

Please sign in to comment.