The model I am using includes a variable (1) that is the expected discounted sum of another endogenous variable (2). When using the instruction 'forecast' with the second order approximation, the forecasted path of variable (1) increases, while variable (2) at time 1 decreases. This seems odd since variable (2) is just the expected discounted sum of (1), written as a difference equation.
The forecast with the first order approximation delivers instead the expected result (it is easy to check analitycally). Is there something conceptually different in computing forecast with the second order approximation? Has the loop in simultxdet.m been tested for the sceond order forecast?
Also, when using forecast with second order, I have to set the 'periods' option in forecast at a value quite larger than the number of periods for which I supply values for the exogenous deterministic shock, else the forecast is computed ignoring a portion of the supplied values.
many thanks