IRIS Toolbox Reference Manual

swap

Swap endogeneity and exogeneity of variables and shocks

Syntax

P = swap(P,ExogList,EndogList,Dates)
P = swap(P,ExogList,EndogList,Dates,Sigma)

Input arguments

Output arguments

Description

The function swap is equivalent to the following separate calls to functions exogenize and endogenize:

p = exogenize(p,ExogList,Dates);
p = endogenize(p,EndogList,Dates);

or

p = exogenize(p,ExogList,Dates);
p = endogenize(p,EndogList,Dates,Sigma);

if the input argument Sigma is provided.

Example