Skip to content

Commit bab3d81

Browse files
committed
set iteration numbers to minimum([5 * p, 3000]) as in the R implementation
1 parent 4187b82 commit bab3d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lts.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function lts(X::AbstractMatrix{Float64}, y::AbstractVector{Float64}; iters=nothi
147147
h = Int(floor((n + p + 1.0) / 2.0))
148148

149149
if isnothing(iters)
150-
iters = minimum([500 * p, 3000])
150+
iters = minimum([5 * p, 3000])
151151
end
152152

153153
allindices = collect(1:n)

0 commit comments

Comments
 (0)