Skip to content

Commit 3c3b32e

Browse files
Update src/Loess.jl
Co-authored-by: David Müller-Widmann <devmotion@users.noreply.github.com>
1 parent 730608d commit 3c3b32e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Loess.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,10 @@ function predict(
286286
else
287287
# see Cleveland and Grosse 1991 p.50.
288288
L = hatmatrix(model)
289-
= L - I
289+
for i in diagind(L)
290+
L[i] -= 1
291+
end
292+
= L
290293
L̄L̄ =' *
291294
δ₁ = tr(L̄L̄)
292295
δ₂ = sum(abs2, L̄L̄)

0 commit comments

Comments
 (0)