Special formula terms to define fixed effects fe,
varying coefficients vc and random effects
re. The use of these formula terms ensures that
the functions fvcm, tvcm and
olmm fit the intended model. Some examples are given
below and on the documentation pages of the fitting functions.
For all of fvcm, tvcm and
olmm, variables which are not defined with one of
fe, vc and re are
treated as fixed effects. Intercepts can be dropped from the model by
the intercept argument. The terms ce
(category-specific effects) and ge (global effect or
proportional odds effect) are designed for the function
olmm. Notice that tvcm may changes,
for internal reasons, the order of the terms in the specified
formula. Note that you can put multiple terms within
fe, ge and ce terms
(e.g., fe(ce(x1 + x2 + ge(x3 + x4))).
At present, the term ".", which is often use to extract all
variables of the data, is ignored. As an alternative,
vc interprets character vectors, assigned as unnamed
arguments, as lists of variables of moderators to be extracted from
data. See the examples below.
Default for intercepts in fe terms is intercept
= TRUE, or intercept = "ce" for models fitted with
olmm. This means that an intercept is automatically
attached. Alternatives are intercept = FALSE, which is equal to
intercept = "none", and intercept = "ge", which yields a
global-effect intercept for models fitted with olmm.
Default for intercepts in vc is to introduce an
intercept if the by argument is ignored, otherwise no intercept
is introduced. Specifically, if input is specified for the by
argument, then intercept = TRUE, or intercept = "ce"
for models fitted by olmm. Alternatives are
intercept = FALSE, which is equal to intercept = "none",
and intercept = "ge", which yields a global-effect varying
intercept.
Default for intercepts in re is intercept =
TRUE, which is equal to intercept = "ge". intercept =
FALSE is equal to intercept = "none". For category-specific
random intercepts, use intercept = "ge". See
olmm.