IRIS Toolbox Reference Manual

## resample

Resample from the model implied distribution

#### Syntax

    Outp = resample(M,Inp,Range,NDraw,...)
    Oupt = resample(M,Inp,Range,NDraw,J,...)

#### Input arguments

- `M` [ model ] - Solved model object.

- `Inp` [ struct | empty ] - Input data (if needed) for the distributions of initial condition and/or empirical shocks; if not bootstrap is invovled

- `Range` [ numeric ] - Resampling date range.

- `NDraw` [ numeric ] - Number of draws.

- `J` [ struct | empty ] - Database with user-supplied (time-varying) tunes on std devs, corr coeffs, and/or means of shocks.

#### Output arguments

- `Outp` [ struct ] - Output database with resampled data.

#### Options

- `'deviation='` [ `true` | `false` ] - Treat input and output data as deviations from balanced-growth path.

- `'dtrends='` [ `'auto'` | `true` | `false` ] - Add deterministic trends to measurement variables.

- `'method='` [ `'bootstrap'` | `'montecarlo'` ] - Method of randomising shocks and initial condition.

- `'progress='` [ `true` | `false` ] - Display progress bar in the command window.

- `'randomInitCond='` [ `true` | `false` | numeric ] - Randomise initial condition; a number means the initial condition will be simulated using the specified number of extra pre-sample periods.

- `'stateVector='` [ `'alpha'` | `'x'` ] - When resampling initial condition, use the transformed state vector, `alpha`, or the vector of original variables, `x`; this option is meant to guarantee replicability of results.

- `'svdOnly='` [ `true` | `false` ] - Do not attempt Cholesky and only use SVD to factorize the covariance matrix when resampling initial condition; only applies when `'randomInitCond=' true`.

- `'wild='` [ `true` | `false` ] - Use wild bootstrap instead of Efron bootstrap; only applies when `'method=' 'bootstrap'`.

#### Description

When you use wild bootstrap for resampling the initial condition, the results are based on an assumption that the mean of the initial condition is the asymptotic mean implied by the model (i.e. the steady state).

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.