@Smit-create can you take a look at the `additive_functionals` lecture ``` AttributeError: module 'quantecon' has no attribute 'lss' ``` Must be due to a change in `quantecon` package? coming from this block ```python ------------------ ϕ_1, ϕ_2, ϕ_3, ϕ_4 = 0.5, -0.2, 0, 0.5 σ = 0.01 ν = 0.01 # Growth rate # A matrix should be n x n A = np.array([[ϕ_1, ϕ_2, ϕ_3, ϕ_4], [ 1, 0, 0, 0], [ 0, 1, 0, 0], [ 0, 0, 1, 0]]) # B matrix should be n x k B = np.array([[σ, 0, 0, 0]]).T D = np.array([1, 0, 0, 0]) @ A F = np.array([1, 0, 0, 0]) @ B amf = AMF_LSS_VAR(A, B, D, F, ν=ν) T = 150 x, y = amf.lss.simulate(T) fig, ax = plt.subplots(2, 1, figsize=(10, 9)) ax[0].plot(np.arange(T), y[amf.nx, :], color='k') ax[0].set_title('Path of $y_t$') ax[1].plot(np.arange(T), y[0, :], color='g') ax[1].axhline(0, color='k', linestyle='-.') ax[1].set_title('Associated path of $x_t$') plt.show() ------------------ ```
Activity