reichlab / lssm

Linear state space models
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

marginal distribution forecasts at horizons larger than 1 #1

Closed elray1 closed 3 years ago

elray1 commented 3 years ago

Modify predict function.

Output from stan is a 3d array of shape (p, p + 1, horizon). At each steps ahead h = 1, ..., horizon, result[:, 1, h] is the point prediction for h steps ahead result[:, 2:(p+1), h] is the covariance matrix for h steps ahead

Logic: