amer {amer} | R Documentation |
fit a (generalized) additive mixed model using lmer
amer(formula, data, family, REML=TRUE, control=list(), start, verbose=FALSE, subset, weights, na.action, offset, contrasts, basisGenerators=c("tp", "tpU"), ...)
formula |
a two-sided formula object describing the fixed-effects part of the model, with the response on the left of a ~ operator and the terms, separated by + operators, on the right. The terms can include specifications for non-grouped random effects of types given in basisGenerators , see examples. The vertical bar character "|" separates an expression for a model matrix and a grouping factor. |
data |
an optional data frame containing the variables named in formula. By default the variables are taken from the environment from which lmer is called. |
family |
a GLM family, see glm and family . If family is missing then a linear mixed model is fit; otherwise a generalized linear mixed model is fit. |
REML |
logical argument to lmer only. Should the estimates be chosen to optimize the REML criterion (as opposed to the log-likelihood)? Defaults to TRUE . |
control |
a list of control parameters for lmer |
start |
a named list of starting values for the parameters in the model. See lmer . |
verbose |
logical scalar. If TRUE verbose output is generated during the optimization of the parameter estimates. |
subset |
see lmer |
weights |
see lmer |
na.action |
see lmer |
offset |
see lmer |
contrasts |
see lmer |
basisGenerators |
a character vector of names of functions that generate bases for function estimation in a way amer can use. See tp for an example. |
... |
further arguments handed to lmer |
An object of class amer-class
. See there for details.
Fabian Scheipl
tests/optionsTests.r
and the vignette for examples