Options
Contents
Options structure
Most RECS functions can have their behavior changed by adjusting options. Options take the form of a structure whose possible fields are described in the following table. You can set values of these fields using either of the two formulations:
options = struct('field1', values1, 'field2', values2, ...);
or
options.field1 = values1; options.field2 = values2;
Field name  Values  Used by Functions 

accuracy  1 to check accuracy on the asymptotic distribution (default: 0).  recsSimul 
display  1 (default) to display output (solver iterations or results), 0 to prevent display.  recsAccuracy, recsmodel, recsSimul, recsSolveREE 
eqsolver  Solver for equilibrium equations: 'fsolve', 'lmmcp' (default), 'ncpsolve' or 'path', see Solvers for systems of nonlinear equations and for mixed complementarity problems.  recsFirstGuess, recsmodel, recsSimul, recsSolveREE, recsSS 
eqsolveroptions  Options structure to be passed to eqsolver.  recsFirstGuess, recsmodel, recsSimul, recsSolveREE, recsSS 
extrapolate  1 (default) if extrapolation is allowed outside the interpolation space or 0 to forbid it.  recsSimul, recsSolveREE 
fgmethod  Determine which method is used to provide a first guess: 'auto' (default), 'perturbation', 'perfectforesight' or 'steadystate'  recsFirstGuess 
funapprox  Functional approximated to find the rational expectations solution:

recsSimul, recsSolveREE 
loop_over_s  0 (default) to solve all grid points at once, 1 to loop over each grid points, or n to loop over n blocks of grid points.  recsSolveREE, recsSimul 
Python  1 to call Python directly instead of the executable file (default: 0, only for Windows and for developement).  recsmodel 
reemethod  Define the method to solve for rational expextations:

recsSolveREE 
reesolver  Solver for the rational expectations equilibrium, expected values depend on reemethod:

recsSolveREE 
reesolveroptions  Options structure to be passed to reesolver.  recsSolveREE 
simulmethod  Method of simulation: 'interpolation' (default) or 'solve', see Simulate the model.  recsSimul 
stat  1 to ouput summary statistics from the simulation (default: 0), see Simulate the model.  recsSimul 
useapprox  (default: 1) behaviour dependent of the chosen function to approximate. If 0 and funapprox is 'expapprox' then nextperiod responses are calculated by equations solve and not just interpolated. If 1 and funapprox is 'resapprox', the guess of response variables is found with the new approximation structure.  recsSimul, recsSolveREE 
T  integer defining the time horizon at which the model is supposed to converge to its steady state (default: 50)  recsFirstGuess 
Tburn  integer defining the number of observations discarded as burnin period (default: 20)  recsSimul 