File: ep_accuracy_check.m

package info (click to toggle)
dynare 4.6.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 74,896 kB
  • sloc: cpp: 98,057; ansic: 28,929; pascal: 13,844; sh: 5,947; objc: 4,236; yacc: 4,215; makefile: 2,583; lex: 1,534; fortran: 877; python: 647; ruby: 291; lisp: 152; xml: 22
file content (15 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function e = ep_accuracy_check(M,options,oo)

endo_simul = oo.endo_simul;
n = size(endo_simul,2);
[initialconditions, innovations, pfm, ep, verbosity, options, oo] = ...
    extended_path_initialization([], n-1, [], options, M, oo);

options.ep.accuracy.stochastic.order = options.ep.stochastic.order;
[nodes,weights,nnodes] = setup_integration_nodes(options.ep.accuracy,pfm);

e = zeros(M.endo_nbr,n);
for i=1:n
    e(:,i) = euler_equation_error(endo_simul(:,i),oo.exo_simul, ...
                                  innovations, M, options,oo,pfm,nodes,weights);
end