fit_bsts | R Documentation |
Fits a BSTS model for a time series y, given a vector or matrix of covariates z.
fit_bsts(y, z, lags = 0, MCMC.iter = 5000)
y |
A numeric vector (time series response variable). |
z |
A numeric vector or matrix (covariates). |
lags |
Integer, number of lags for the autoregressive component. |
MCMC.iter |
Integer, number of MCMC iterations. |
A fitted BSTS model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.