Usage
corrHLfit(formula, data, init.corrHLfit = list(),
init.HLfit = list(), ranFix = list(), lower = list(),
upper = list(),
objective = NULL, resid.model = ~1, resid.formula,
control.dist = list(), control.corrHLfit = list(),
processed = NULL, family = gaussian(),
nb_cores = NULL, ...)
Arguments
formula
Either a linear model formula
(as handled by various fitting functions) or a predictor
, i.e. a formula with attributes (see Predictor
and examples below). See Details in spaMM
for allowed terms in the formula.
data
A data frame containing the variables in the response and the model formula.
init.corrHLfit
An optional list of initial values for correlation and/or dispersion parameters, e.g.
list(rho=1,nu=1,lambda=1,phi=1)
where rho
and nu
are parameters of the Mat<U+00E9>rn family (see Matern
), and
lambda
and phi
are dispersion parameters (see Details in spaMM
for the meaning of these parameters).
All are optional, but giving values for
a dispersion parameter changes the ways it is estimated (see Details).
rho
may be a vector (see make_scaled_dist
) and, in that case, it is possible that some or all of its elements are NA
, for which corrHLfit
substitute automatically determined values.
init.HLfit
See identically named HLfit
argument.
ranFix
A list similar to init.corrHLfit
, but specifying fixed values of the parameters not estimated.
lower
An optional list of values of parameters specified through init.corrHLfit
, used as lower values in calls to optim
. See Details for default values.
upper
Same as lower
, but upper values.
objective
Can be ignored: default value is determined from other
arguments (HLmethod
and REMLformula
), being "p_bv"
for restricted likelihood or "p_v"
for marginal likelihood. Non-default values can be given but this is an obsolete and the other arguments should be used.
resid.model, resid.formula
See identically named HLfit
arguments. control.dist
See control.dist
in HLCor
control.corrHLfit
This may be used to provide control to the optimizer. In particular, control.corrHLfit$optim
should be a list of arguments for optim, e.g. control.corrHLfit = list(optim=list(control=list(ndeps=rep(2e-3,3))))
processed
For programming purposes, not documented.
nb_cores
Number of cores to use for parallel computations.
…
Optional arguments passed to HLCor
, HLfit
or designL.from.Corr
, for example the distMatrix
argument
of HLCor
. Arguments that do not fit within these functions are detected and a warning is issued.