Learn R Programming

tramME (version 0.0.1)

LmME: ME version of tram::Lm

Description

ME version of tram::Lm

Usage

LmME(formula, data, subset, weights, offset, na.action = na.omit,
  silent = TRUE, nofit = FALSE, optim_control = list(outer = list(),
  optim = list()), ...)

Arguments

formula

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.

data

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).

subset

an optional vector specifying a subset of observations to be used in the fitting process.

weights

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.

offset

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.

na.action

a function which indicates what should happen when the data contain NAs. The default is set to na.omit.

silent

Logical, if TRUE, prints all tracing information.

nofit

Logical, if TRUE, creates the model objects, but does not run the optimization.

optim_control

List of optional arguments for the optimizer.

...

additional arguments to tram.

Value

A LmME object.