# Question concerning model diagnostics

**URL:** <https://forum.dynare.org/t/question-concerning-model-diagnostics/1513>\
**Category:** Dynare help (legacy posts)\
**Created:** [19 June 2010 17:55 UTC](https://forum.dynare.org/t/question-concerning-model-diagnostics/1513 "2010-06-19T17:55:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom24](https://forum.dynare.org/letter_avatar_proxy/v4/letter/t/9de053/32.png) [@tom24](https://forum.dynare.org/u/tom24)\
**Post date:** [19 June 2010 17:55 UTC](https://forum.dynare.org/t/question-concerning-model-diagnostics/1513/1 "2010-06-19T17:55:42Z")

</div>

hello everybody,

brief question of understanding concerning the filtered variables (1step predictions) in the result structure oo\_:

Since oo\_.FilteredVariables is reported with respect to the steady state, do I assume correctly that the mean of the prediction errors computed from it should be as close as possible to zero?

Since this is not the case, is there any problem in how I calculate the 1-step ahead prediction error?

```auto
>> global M_
>> [ys,tchek] = feval([M_.fname '_steadystate'],[zeros(M_.exo_nbr,1);oo_.exo_det_steady_state]);
>> v_pred=y_obs-repmat(ys(3:7)',length(y_obs),1)-y_filtered; % lines 3 to 7 in ys contain the steady state vals of observables!
```

y\_obs is a matrix with the “varobs” arranged in columns and y\_filtered contains corresponding columns of observed variables from oo\_.FilteredVariables.  
Is there any problem with this prediction error calculation?  
Many thanks for your help

Small update: I seem to be missing the selection matrix M (or mf or Z) to map filtered observables on the true ones (cf. p.4 in presentation of Michael Juillard “estimation with Dynare”). Unfortunately it does not seem to be saved in the results…
