@@ -95,10 +95,10 @@ mutable struct StructuralModel <: StateSpaceLearningModel
95
95
96
96
@assert ! has_intercept (exog) " Exogenous matrix must not have an intercept column"
97
97
@assert 1 <= stochastic_start < length (y) " stochastic_start must be greater than or equal to 1 and smaller than the length of the time series"
98
- @assert level in [" deterministic" , " stochastic" , " none" ] " level must be either deterministic, stochastic or no "
99
- @assert slope in [" deterministic" , " stochastic" , " none" ] " slope must be either deterministic, stochastic or no "
100
- @assert seasonal in [" deterministic" , " stochastic" , " none" ] " seasonal must be either deterministic, stochastic or no "
101
- @assert cycle in [" deterministic" , " stochastic" , " none" ] " cycle must be either deterministic, stochastic or no "
98
+ @assert level in [" deterministic" , " stochastic" , " none" ] " level must be either deterministic, stochastic or none "
99
+ @assert slope in [" deterministic" , " stochastic" , " none" ] " slope must be either deterministic, stochastic or none "
100
+ @assert seasonal in [" deterministic" , " stochastic" , " none" ] " seasonal must be either deterministic, stochastic or none "
101
+ @assert cycle in [" deterministic" , " stochastic" , " none" ] " cycle must be either deterministic, stochastic or none "
102
102
@assert seasonal != " none" ? length (y) > minimum (freq_seasonal) : true " Time series must be longer than the seasonal period if seasonal is added"
103
103
104
104
if typeof (freq_seasonal) <: Vector
@@ -1591,7 +1591,7 @@ function simulate_states(
1591
1591
)
1592
1592
end
1593
1593
1594
- model . slope ? slope = ones (T, N_scenarios) .* slope : nothing
1594
+ slope = ones (T, N_scenarios) .* slope
1595
1595
model. level ? trend = ones (T, N_scenarios) .* trend : nothing
1596
1596
model. seasonal ? seasonals = [ones (T, N_scenarios) .* s for s in seasonals] : nothing
1597
1597
for t in (T + 1 ): (T + steps_ahead)
0 commit comments