Skip to content

Commit 3ac04a4

Browse files
committed
[ci skip] review changes
1 parent e938018 commit 3ac04a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/statistical_tests/kpss.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ function p_value_from_η(η::Fl, crit_vals::Vector{Fl}) where Fl
3636
end
3737

3838
function calc_η_level(y::Vector{Fl}, lags::Bool) where Fl
39-
n = length(y)
40-
ϵ = y .- (mean(y))
41-
l = calc_lag_kpss(lags, n)
42-
η = (1/n^2)*sum(sum((((sum(ϵ[i] for i in 1:t))^2)/σ²_estimator(l, n, ϵ)) for t in 1:n))
39+
n = length(y)
40+
ϵ = y .- (mean(y))
41+
l = calc_lag_kpss(lags, n)
42+
η = (1/n^2)*sum(sum((((sum(ϵ[i] for i in 1:t))^2)/σ²_estimator(l, n, ϵ)) for t in 1:n))
4343
return η
4444
end
4545

0 commit comments

Comments
 (0)