tramME_model | R Documentation |
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 |
formula that either describes the whole model or
the random effects specification. If the model contains random effects or
smooth terms |
data |
an optional data frame, list or environment (or object
coercible by |
tram |
tram model name: Lm, BoxCox, Colr, Polr, Coxph, Survreg, Lehmann,
Aareg, or the suffixed versions of these (e.g. ColrME). Ignored when a |
ctm |
A |
smooth |
Optional pre-defined smooth specification of the class |
negative |
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.
Similarly to mlt, the offsets and the weights are not part of the model, but they are data and they are not saved in the returned object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.