| hhh4_formula | R Documentation | 
The special functions 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)
x | 
 an expression like   | 
unitSpecific | 
 logical indicating if the effect of   | 
which | 
 vector of logicals indicating which unit(s)
should get an unit-specific parameter.
For units with a   | 
initial | 
 initial values (on internal scale!) 
for the fixed effects used for optimization. The default
(  | 
type | 
 random intercepts either follow an IID or a CAR model.  | 
corr | 
 whether random effects
in different components (such as   | 
initial.fe | 
 initial value for the random intercept mean.  | 
initial.var | 
 initial values (on internal scale!) for the variance components used for optimization.  | 
initial.re | 
 initial values (on internal scale!) for the random effects 
used for optimization. The default   | 
These special functions are intended for use in component formulae of
hhh4 models and are not exported from the package namespace.
If unit-specific fixed or random intercepts are specified, an overall
intercept must be excluded (by -1) in the component formula.
addSeason2formula
hhh4 model specifications in vignette("hhh4"),
vignette("hhh4_spacetime") or on the help page of
hhh4.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.