- formula
A predictor, i.e. a formula with attributes (see Predictor), or possibly simply a simple formula if an offset is not required.
- fixed, ranPars
A list of given values for correlation parameters (some of which are mandatory), and possibly also dispersion parameters
(optional, but passed to HLfit if present). ranPars is the old argument, maintained for back compatibility; fixed is the new argument, uniform across spaMM fitting functions. See ranPars for further information.
- data
The data frame to be analyzed.
- family
A family object describing the distribution of the response variable. See HLfit for further information.
- distMatrix
Either a distance matrix between geographic locations, forwarded to MaternCorr or CauchyCorr. It overrides the (by default, Euclidean) distance matrix that would otherwise be deduced from the variables in a Matern(.)) or Cauchy(.) term;
or a list of such matrices. The list format is useful when there are several Matern/Cauchy terms, to avoid that all of them are affected by the same distMatrix. NULL list elements may be necessary, e.g.
distMatrix=list("1"=NULL,"2"=<.>)) when a matrix is specified only for the second random effect.
- adjMatrix
An single adjacency matrix, used if a random effect of the form
y ~ adjacency(1|<location index>) is present. See adjacency for further details.
If adjacency matrices are needed for several random effects, use covStruct.
- corrMatrix
A matrix C used if a random effect term of the form corrMatrix(1|<stuff>) is present. This allows to analyze non-spatial model by giving for example a matrix of genetic correlations. Each row corresponds to levels of a variable <stuff>. The covariance matrix of the random effects for each level is then \(\lambda\)C, where as usual \(\lambda\) denotes a variance factor for the random effects (if C is a correlation matrix, then \(\lambda\) is the variance, but other cases are possible). See corrMatrix for further details.
If matrices are needed for several random effects, use covStruct.
- covStruct
An interface for specifying correlation structures for different types of random effect (corrMatrix or adjacency). See covStruct for details.
- method
Character: the fitting method to be used, such as "ML", "REML" or "PQL/L". "REML" is the default. Other possible values of HLfit's method argument are handled.
- weights.form
Specification of prior weights by a one-sided formula: use weights.form = ~ pw instead of prior.weights = pw. The effect will be the same except that such an argument, known to evaluate to an object of class "formula", is suitable to enforce safe programming practices (see good-practice).
- verbose
A vector of booleans. inner controls various diagnostic (possibly messy) messages about the iterations. This should be distinguished from the TRACE element, meaningful in fitme or corrHLfit calls.
- control.dist
A list of arguments that control the computation of the distance argument of the correlation functions. Possible elements are
- rho.mapping
a set of indices controlling which elements of the rho scale vector scales which dimension(s) of the space in which (spatial)
correlation matrices of random effects are computed. See same argument in make_scaled_dist for details and examples.
- dist.method
method argument of proxy::dist function (by default, "Euclidean", but see make_scaled_dist for other distances such as spherical ones.)