powered by
bsm creates/estimates basic structural models for seasonal time series.
bsm
bsm( y, bc = FALSE, seas = c("hd", "ht", "hs"), s2v = c(lvl = 0.2, slp = 0.05, seas = 0.075), s2u = 0.1, xreg = NULL, fSv = NULL, ... )
an object of class ts, with frequency 4 or 12.
ts
logical. If TRUE logs are taken.
character, type of seasonality (Harvey-Durbin (hd), Harvey-Todd (ht), Harrison-Steven (ht))
variances of the error vector v_t.
variance of the error u_t.
matrix of regressors.
function to create the covariance matrix of v_t.
other arguments.
An object of class stsm.
stsm
Durbin, J. and Koopman, S.J. (2012) Time Series Analysis by State Space Methods, 2nd ed., Oxford University Press, Oxford.
# NOT RUN { bsm1 <- bsm(AirPassengers, bc = TRUE) # }
Run the code above in your browser using DataLab