By default the ssm()
function generates a local level
ets("A","N","N")
, or exponential smoothing model. If trend = TRUE
,
then the model transforms into a local trend, ets("A","A","N")
or Holt model
from the nforecast package. For damped trend models set damped = TRUE
.
When seasonal = TRUE
, the model becomes a seasonal local level or
ets("A","N","A")`` model from the \pkg{forecast} package. Finally, a Holt-Winters method or
ets("A","A","A")`,is whenever both Trend
and
seasonal
options are TRUE
.
The genT = TRUE
defines a t-student innovations SSM model. Check, Ardia (2010))
and Fonseca, et. al (2019) for more details.
The default priors used in a ssm( )
model are:
level ~ normal(0,0.5)
Trend ~ normal(0,0.5)
damped~ normal(0,0.5)
Seasonal ~ normal(0,0.5)
sigma0 ~ t-student(0,1,7)
level1 ~ normal(0,1)
trend1 ~ normal(0,1)
seasonal1 ~ normal(0,1)
dfv ~ gamma(2,0.1)
breg ~ t-student(0,2.5,6)
For changing the default prior use the function set_prior()
.