- formula
a two-sided linear formula object describing the model, with
the response on the left of a ~
operator and the terms, separated by
+
operators, on the right.
- data
an optional data frame containing the variables named in
model
, correlation
, weights
, and subset
. By
default the variables are taken from the environment from which gls
is called.
- correlation
an optional corStruct
object describing the
within-group correlation structure. See the documentation of
corClasses
for a description of the available corStruct
classes. If a grouping variable is to be used, it must be specified in the
form
argument to the corStruct
constructor. Defaults to
NULL
, corresponding to uncorrelated errors.
- basis.x
List of basis for functional explanatory data estimation.
- basis.b
List of basis for \(\beta(t)\) parameter estimation.
- rn
List of Ridge parameter.
- lambda
List of Roughness penalty parameter.
- weights
an optional varFunc
object or one-sided formula
describing the within-group heteroscedasticity structure. If given as a
formula, it is used as the argument to varFixed
, corresponding
to fixed variance weights. See the documentation on varClasses
for a description of the available varFunc
classes. Defaults
to NULL
, corresponding to homoscedastic errors.
- subset
an optional expression indicating which subset of the rows of
data
should be used in the fit. This can be a logical vector, or a
numeric vector indicating which observation numbers are to be included, or a
character vector of the row names to be included. All observations are
included by default.
- method
a character string. If "REML"
the model is fit by
maximizing the restricted log-likelihood. If "ML"
the log-likelihood
is maximized. Defaults to "REML"
.
- control
a list of control values for the estimation algorithm to
replace the default values returned by the function
glsControl
. Defaults to an empty list.
- verbose
an optional logical value. If TRUE
information on the
evolution of the iterative algorithm is printed. Default is FALSE
.
- criteria
GCCV criteria, see GCCV.S
.
- ...
some methods for this generic require additional arguments.
None are used in this methodl.