There are two ways of defining tramME models:
A ctm model and a formula defining the random effects.
A formula combining the notation of tram and lme4, a tram function name, and a dataset to set up the bases.
tramME_model(
formula = NULL,
data = NULL,
tram = NULL,
ctm = NULL,
negative = NULL,
...
)formula that either describes the whole model or
the random effects specification. If the model contains random effects,
formula has to contain their definition in lme4-style notation.
an optional data frame, list or environment (or object
coercible by as.data.frame to a data frame) containing the
variables in the model. If not found in data, the
variables are taken from environment(formula).
tram model name: Lm, BoxCox, Colr, Polr, Coxph, Survreg, Lehmann,
Aareg, or the suffixed versions of these (e.g. ColrME). Ignored when a ctm model
is also supplied.
A ctm model
an optional parameter that defines whether the random effects have a positive or a negative sign in the model when the fixed effecst part is defined through a ctm
optional arguments passed to tram when the model is defined by the formula
A tramME_model object that defines the mixed effects transfromation model.