Skip to content

Commit 59e0df6

Browse files
author
andre_ramos
committed
fix format
1 parent 20741ed commit 59e0df6

File tree

1 file changed

+34
-29
lines changed

1 file changed

+34
-29
lines changed

src/models/structural_model.jl

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -542,37 +542,38 @@ function create_dynamic_exog_coefs_matrix(
542542
nothing
543543
else
544544
state_components_dict["level"] = hcat(
545-
ones(T, 1), create_ξ(T, stochastic_start)
546-
)
545+
ones(T, 1), create_ξ(T, stochastic_start)
546+
)
547547
end
548548
key_name = "level"
549549
elseif combination[2] == "slope"
550550
if haskey(state_components_dict, "slope")
551551
nothing
552552
else
553553
state_components_dict["slope"] = hcat(
554-
vcat([0], collect(1:(T - 1))), create_ζ(T, ζ_threshold, stochastic_start)
555-
)
554+
vcat([0], collect(1:(T - 1))),
555+
create_ζ(T, ζ_threshold, stochastic_start),
556+
)
556557
end
557558
key_name = "slope"
558559
elseif combination[2] == "seasonal"
559560
if haskey(state_components_dict, "seasonal_$(combination[3])")
560561
nothing
561562
else
562563
state_components_dict["seasonal_$(combination[3])"] = hcat(
563-
create_deterministic_seasonal(T, combination[3]),
564-
create_ω(T, combination[3], ω_threshold, stochastic_start),
565-
)
564+
create_deterministic_seasonal(T, combination[3]),
565+
create_ω(T, combination[3], ω_threshold, stochastic_start),
566+
)
566567
end
567568
key_name = "seasonal_$(combination[3])"
568569
elseif combination[2] == "cycle"
569570
if haskey(state_components_dict, "cycle_$(combination[3])")
570571
nothing
571572
else
572573
state_components_dict["cycle_$(combination[3])"] = hcat(
573-
create_deterministic_cycle(T, combination[3]),
574-
create_ϕ(combination[3], T, ϕ_threshold, stochastic_start),
575-
)
574+
create_deterministic_cycle(T, combination[3]),
575+
create_ϕ(combination[3], T, ϕ_threshold, stochastic_start),
576+
)
576577
end
577578
key_name = "cycle_$(combination[3])"
578579
end
@@ -617,46 +618,50 @@ function create_forecast_dynamic_exog_coefs_matrix(
617618
nothing
618619
else
619620
state_components_dict["level"] = hcat(
620-
ones(T + steps_ahead, 1), create_ξ(T + steps_ahead, stochastic_start)
621-
)[
622-
(end - steps_ahead + 1):end, 1:combination[4]
623-
]
621+
ones(T + steps_ahead, 1), create_ξ(T + steps_ahead, stochastic_start)
622+
)[
623+
(end - steps_ahead + 1):end, 1:combination[4]
624+
]
624625
end
625626
key_name = "level"
626627
elseif combination[2] == "slope"
627628
if haskey(state_components_dict, "slope")
628629
nothing
629630
else
630631
state_components_dict["slope"] = hcat(
631-
vcat([0], collect(1:(T + steps_ahead - 1))),
632-
create_ζ(T + steps_ahead, ζ_threshold, stochastic_start),
633-
)[
634-
(end - steps_ahead + 1):end, 1:combination[4]
635-
]
632+
vcat([0], collect(1:(T + steps_ahead - 1))),
633+
create_ζ(T + steps_ahead, ζ_threshold, stochastic_start),
634+
)[
635+
(end - steps_ahead + 1):end, 1:combination[4]
636+
]
636637
end
637638
key_name = "slope"
638639
elseif combination[2] == "seasonal"
639640
if haskey(state_components_dict, "seasonal_$(combination[3])")
640641
nothing
641642
else
642643
state_components_dict["seasonal_$(combination[3])"] = hcat(
643-
create_deterministic_seasonal(T + steps_ahead, combination[3]),
644-
create_ω(T + steps_ahead, combination[3], ω_threshold, stochastic_start),
645-
)[
646-
(end - steps_ahead + 1):end, 1:combination[4]
647-
]
644+
create_deterministic_seasonal(T + steps_ahead, combination[3]),
645+
create_ω(
646+
T + steps_ahead, combination[3], ω_threshold, stochastic_start
647+
),
648+
)[
649+
(end - steps_ahead + 1):end, 1:combination[4]
650+
]
648651
end
649652
key_name = "seasonal_$(combination[3])"
650653
elseif combination[2] == "cycle"
651654
if haskey(state_components_dict, "cycle_$(combination[3])")
652655
nothing
653656
else
654657
state_components_dict["cycle_$(combination[3])"] = hcat(
655-
create_deterministic_cycle(T + steps_ahead, combination[3]),
656-
create_ϕ(combination[3], T + steps_ahead, ϕ_threshold, stochastic_start),
657-
)[
658-
(end - steps_ahead + 1):end, 1:combination[4]
659-
]
658+
create_deterministic_cycle(T + steps_ahead, combination[3]),
659+
create_ϕ(
660+
combination[3], T + steps_ahead, ϕ_threshold, stochastic_start
661+
),
662+
)[
663+
(end - steps_ahead + 1):end, 1:combination[4]
664+
]
660665
end
661666
key_name = "cycle_$(combination[3])"
662667
end

0 commit comments

Comments
 (0)