IRIS-Solutions-Team / IRIS-Toolbox

[IrisToolbox] for Macroeconomic Modeling
Other
92 stars 42 forks source link

Nonlinear Kalman filter #315

Closed pvcarballo closed 2 years ago

pvcarballo commented 2 years ago

Hi! I'm trying to run the Kalman Filter adding option simulate using this line of code:

[m_kf,g,v,delta,pe] = filter(m,dd,sdate:edate, 'simulate=',{'method=','selective', 'nonlinPer=', 20});

And I get these errors: Error using model.simulate The value of 'D' is invalid. It must satisfy the function: isstruct.

Error in extend.InputParser/parse (line 54) parse@inputParser(this, varargin{:});

Error in model/simulate (line 12) parser.parse(this, inputData, range);

Error in shared.Kalman/prepareKalmanOptions/herePrepareSimulateSystemProperty (line 294) opt.Simulate = simulate( ...

Error in shared.Kalman/prepareKalmanOptions (line 233) herePrepareSimulateSystemProperty( );

Error in model/filter (line 366) [opt, timeVarying] = prepareKalmanOptions( ...

Error in kalmanfilter (line 119) [m_kf,g,v,delta,pe] = filter(m,dd,sdate:edate, 'simulate=',{'method=','selective', 'nonlinPer=', 20});

I´m using the last release of Iris and Matlab 2021. I´ll be very grateful for any help on this.

Patricia