fe
and ri
are used to specify
unit-specific effects of covariates and random intercept terms,
respectively, in the component formulae of hhh4
.fe(x, unitSpecific = FALSE, which = NULL, initial = NULL) ri(type = c("iid","car"), corr = c("none", "all"),
initial.fe = 0, initial.var = -.5, initial.re = NULL)
sin(2*pi*t/52)
involving the time
variable t
, or just 1
for an intercept.
In general this covariate expression might use any variables
contained in the control$data
argumenx
should be unit-specific. This is a convenient shortcut for
which = rep(TRUE, nUnits)
, where nUnits
is the number
of units (i.e., columns of the "sts"
objFALSE
value, the effect term for x
will be zero in the log-linear
predictor. Note especially that setting a NULL
) means to use zeroes.ar
and end
)
should be correlated or not.NULL
are random numbers
from a normal distribution with zero mean and variance 0.001.addSeason2formula
hhh4
model specifications in vignette("hhh4")
,
vignette("hhh4_spacetime")
or on the help page of
hhh4
.