Practice code for upcoming exam

Hi All,

Please see the above model in my mock paper,

I’m really unsure as to where I’m going wrong here,

Is anyone able to help?

I have attached my mod file,

Thanks,

Coursework_prac.mod (626 Bytes)

What exactly is your question?

Sorry,

I should’ve been clearer,

In part (a) it says determine which policy is preferrable at minimizing the sums of the variances of both inflation and the output gap.

If you run the mod file I have uploaded, it says in the Variance Decomposition output section dmt (equation 6) has no affect on shocks (displays it as NaN).

I’m not sure where in my mod file I have gone wrong to get this output.

Just looking through can you see where I have, or how would you write code for this question?

Cheers,

There are two monetary policy rules. You cannot have both at the same time. Use the attached code to select one of the two regimes:
Coursework_prac.mod (676 Bytes)

For some reason I am getting the exact same results when running it, even when changing money_rule from true to false and vice versa

For the money growth rule, I get

THEORETICAL MOMENTS
VARIABLE         MEAN  STD. DEV.   VARIANCE
x              0.0000     1.9922     3.9690
pi             0.0000     0.0793     0.0063
l              0.0000     2.0539     4.2184
r              0.0000     1.1547     1.3333
i              0.0000     0.1982     0.0393
dmt            0.0000     2.3167     5.3670

and for the interest rate rule I get

THEORETICAL MOMENTS
VARIABLE         MEAN  STD. DEV.   VARIANCE
x              0.0000     0.8807     0.7756
pi             0.0000     0.0247     0.0006
l              0.0000     0.0785     0.0062
r              0.0000     1.1547     1.3333
i              0.0000     0.9179     0.8426
dmt            0.0000     0.0000     0.0000