Plots of time series for SSY


In [3]:
include("src/ssy_state_process.jl")


WARNING: replacing docs for 'split :: Tuple{Any,Any}' in module 'Main'.
WARNING: replacing docs for 'SSY :: Union{}' in module 'Main'.
WARNING: replacing docs for 'discretize_ssy_process :: Tuple{SSY,Integer,Integer,Integer}' in module 'Main'.
Out[3]:
sim_consumption (generic function with 1 method)

In [4]:
using QuantEcon

SSY Parameters


In [5]:
ssy = SSY_default()


Out[5]:
SSY{Float64}(0.987, 0.232, 0.0032, 1.0, 0.994, 0.06244997998398398, 0.991, 0.0938083151964686)

In [19]:
T = 1800


Out[19]:
1800

In [20]:
σ_c, σ_z, z, c = sim_consumption(ssy, ts_length=T);

Now plots


In [21]:
using PyPlot
plt = PyPlot


Out[21]:
PyPlot

In [22]:
fig, ax = plt.subplots(figsize=(10, 5.7))

ax[:plot](1:T, c, label="SSY consumption growth path", alpha=0.5)
ax[:set_xlabel]("time")
ax[:set_ylabel]("consumption growth")

ax[:legend]()

plt.savefig("foo.pdf")
plt.show()



In [ ]: