There are two ways of defining tramME models:
A ctm model and a formula defining the random effects and smooth terms.
A formula combining the notation of tram, lme4 and mgcv, a tram function name, and a dataset to set up the bases.
tramME_model(
formula = NULL,
data = NULL,
tram = NULL,
ctm = NULL,
smooth = NULL,
negative = NULL,
...
)
formula that either describes the whole model or
the random effects specification. If the model contains random effects or
smooth terms formula
has to contain their definition in
lme4-style and mgcv-style notation, respectively.
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
Optional pre-defined smooth specification of the class tramME_smooth
.
If present, the smooth terms in the formula are ignored.
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.