12. Public replication branches
The Ascari–Sbordone (2014) and Born–Pfeifer (2018) examples preserve the equations and calibration choices in the public replication by Johannes Pfeifer and, for Born–Pfeifer, Benjamin Born. The source revision is 26c21f79e4c6a6b19b18e6330edc5b23489907a4. Each example records its source checksum and carries the original GPL license.
12.1. One flag structure for the model and callbacks
Add the selected example folder to the MATLAB path. Obtain the published
defaults from its _flags function and pass that structure as rise_flags
when constructing the model. Its _params and _sstate callbacks read the
same choices from the model, for example:
flags=Ascari_Sbordone_2014_flags([],struct('MP_shock',0,'source_case',3));
m=dsge_model('Ascari_Sbordone_2014','rise_flags',flags, ...
'sstate_file',@Ascari_Sbordone_2014_sstate);
p=Ascari_Sbordone_2014_params(m);
[m,code]=solve(m,'parameters',p,'solve_order',1);
assert(code==0);
residual=resid(m);
assert(all(isfinite(residual(:))) && max(abs(residual(:)))<1e-10);
The original Ascari selection flag is called source_case because its
original name is a reserved MATLAB keyword. Its values 1, 2 and 3 and the
calibrations they select are unchanged. MP_shock and log_utility retain
both source choices. The callback includes lifetime utility among its 19
endogenous outputs. The previously corrected dispersion power 1-alpha
is retained.
12.2. Separate shock exercises
Ascari’s default calibration selects the requested impulse exercise. Its fourth
calibration argument 'moments' selects the source’s business-cycle
calibration and technology shock standard deviation 0.45. A figure’s last
parameter update does not replace the starting calibration.
Born’s monetary-policy example keeps shock standard deviations 0.25, 1 and 1.
The welfare example’s fourth calibration argument selects 'technology'
(default) or 'demand', each with standard deviation 0.01 for its own shock.
Both wage-setting frameworks, fixed and implied slopes, tax calibrations, and
efficient or inefficient subsidy calibrations remain explicit.
12.3. Natural allocation and the tax diagnostic
The welfare example retains the public diagnostic with denominator
1+tau_n. Its original source qualifies that diagnostic’s interpretation.
The actual wage condition retains 1-tau_n. No equation or tax calibration
is changed to equate those two concepts.
The callback instead solves the written natural-hours equation. With
h=varphi+siggma*(1-alppha)+alppha, its steady-state identity is
Natural output and its recursive utility use these natural hours. The output gap is recomputed from actual and natural output. Setting natural hours equal to actual hours at nonzero labor taxes would violate the preserved equation.
12.4. Missing standalone inputs
The monetary-policy example’s public comparison uses Calvo=1. Its standalone
Calvo=0 alternative refers to subsidy inputs that it never declares or
calibrates. That alternative reports MissingReferenceInput; its source
equations and formulas are retained. The welfare example has its own declared
subsidy inputs. Its affected wage-cost and flexible-price alternatives are
parked under the source limitations in Authored source contracts;
the published default remains available.
12.5. Validation scope
Bounded checks cover callback values, wage-slope identities, source calibrations, and residuals of the loaded models. They do not run figure grids, welfare optimization, or estimation. The planner branch retains its objective and instrument; no welfare table is inferred from a first-order model check.
The runnable companion is
WorkingWithAModel/public_replication_branches.m in the tutorials.