# NOT RUN {
##### no policy
ge <- Example9.10()
matplot(ge$ts.p, type = "l")
matplot(ge$ts.z, type = "l")
##### interest rate policy (Fig. 9.12)
Example9.10(policy = Example9.10.policy.interest.rate)
##### monetary supply policy (Fig. 9.13)
Example9.10(policy = Example9.10.policy.money.supply)
##### deflation policy (Fig. 9.14)
ge <- Example9.10(
policy = Example9.10.policy.deflation,
pExg = rbind(NA, NA, 0),
p0 = rbind(0.625, 0.375, 0), ts = TRUE
)
plot(ge$ts.S[3, 3, ], type = "l")
plot(ge$ts.q[, 3], type = "l")
##### quantitative easing policy (Fig. 9.15)
ge <- Example9.10(
policy = Example9.10.policy.quantitative.easing,
pExg = rbind(NA, NA, 0),
p0 = rbind(0.625, 0.375, 0),
ts = TRUE
)
plot(log(ge$ts.S[3, 3, ]), type = "l")
plot(ge$ts.q[, 3], type = "l")
plot(log(ge$ts.p[, 1]), type = "l")
lines(log(ge$ts.p[, 2]), col = "blue")
##### deficit fiscal policy (Fig. 9.17; Fig. 9.18)
ge <- Example9.10(
policy = Example9.10.policy.deficit.fiscal,
priceAdjustmentVelocity = 0.5, ts = TRUE
)
plot(ge$ts.S[3, 3, ], type = "l")
plot(ge$ts.q[, 1], type = "l")
deficit.Example9.10 <- ge$policy.data
plot(deficit.Example9.10, type = "l")
plot(deficit.Example9.10[, 1], cumsum(deficit.Example9.10[, 2]), type = "l")
plot(deficit.Example9.10[, 1],
cumsum(deficit.Example9.10[, 2]) /
(tail(ge$ts.z[, 1] * ge$ts.p[, 1], -399)),
type = "l"
)
##### tax policy (Fig. 9.16)
ge <- Example9.10(policy = Example9.10.policy.tax)
plot(ge$policy.data, type = "l")
# }
Run the code above in your browser using DataLab