# NOT RUN {
InitialEndowments <- {
tmp <- matrix(0, 3, 2)
tmp[1, 1] <- 0.01
tmp[2, 2] <- tmp[3, 2] <- 1
tmp
}
ge <- gemCanonicalDynamicMacroeconomic_3_2(
priceAdjustmentFunction = function(p, q) p,
policy.supply = makePolicySupply(InitialEndowments),
policy.price = makePolicyStickyPrice(stickiness = 0.5),
ts = TRUE,
maxIteration = 1,
numberOfPeriods = 50
)
par(mfrow = c(1, 2))
matplot(ge$ts.z, type = "b", pch = 20)
matplot(ge$ts.p, type = "b", pch = 20)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab