Colr
Mixed-effects version of Colr
ColrME(
formula,
data,
subset,
weights,
offset,
na.action = na.omit,
silent = TRUE,
resid = FALSE,
do_update = FALSE,
estinit = TRUE,
initpar = NULL,
fixed = NULL,
nofit = FALSE,
control = optim_control(),
...
)
an object of class "formula"
: a symbolic description
of the model structure to be
fitted. The details of model specification are given under
tram
and in the package vignette.
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)
.
an optional vector specifying a subset of observations to be used in the fitting process.
an optional vector of weights to be used in the fitting
process. Should be NULL
or a numeric vector. If present,
the weighted log-likelihood is maximised.
this can be used to specify an _a priori_ known component to
be included in the linear predictor during fitting. This
should be NULL
or a numeric vector of length equal to the
number of cases.
a function which indicates what should happen when the data
contain NA
s. The default is set to na.omit
.
Logical. Make TMB functionality silent.
Logical. If TRUE
, the score residuals are also calculated.
This comes with some performance cost.
Logical. If TRUE
, the model is set up so that the weights and the
offsets are updateable. This comes with some performance cost.
logical, estimate a vector of initial values for the fixed effects parameters from a (fixed effects only) mlt model
named list of initial parameter values, if NULL
, it is ignored
a named vector of fixed regression coefficients; the names need to correspond to column names of the design matrix
logical, if TRUE, creates the model object, but does not run the optimization
list with controls for optimization
additional arguments to tram
.
A ColrME object.