@@ -69,9 +69,8 @@ function default_filter(model::BasicStructuralExplanatory)
69
69
Fl = typeof_model_elements (model)
70
70
steadystate_tol = Fl (1e-5 )
71
71
a1 = zeros (Fl, num_states (model))
72
- P1 = zeros (Fl, num_states (model), num_states (model))
73
- P1[1 : 13 , 1 : 13 ] = Fl (1e6 ) .* Matrix {Fl} (I, 13 , 13 )
74
- return UnivariateKalmanFilter (a1, P1, 13 , steadystate_tol)
72
+ P1 = Fl (1e6 ) .* Matrix {Fl} (I, num_states (model), num_states (model))
73
+ return UnivariateKalmanFilter (a1, P1, num_states (model), steadystate_tol)
75
74
end
76
75
77
76
function initial_hyperparameters! (model:: BasicStructuralExplanatory )
@@ -127,14 +126,6 @@ function fill_model_system!(model::BasicStructuralExplanatory)
127
126
return model
128
127
end
129
128
130
- function fill_model_filter! (filter:: KalmanFilter , model:: BasicStructuralExplanatory )
131
- for i in axes (model. exogenous, 2 )
132
- filter. kalman_state. a[i + 13 ] = get_constrained_value (model, get_beta_name (model, i))
133
- end
134
- return filter
135
- end
136
-
137
-
138
129
function fill_H_in_time (model:: BasicStructuralExplanatory , H:: Fl ) where Fl
139
130
return fill_system_matrice_with_value_in_time (model. system. H, H)
140
131
end
0 commit comments