Usage
corrHLfit(formula,data,init.corrHLfit=list(),init.HLfit=list(),ranFix=list(),
lower=list(),upper=list(),trace=list(file=NULL,append=TRUE),objective="p_bv",
control.dist=list(),control.corrHLfit=list(),processed=NULL,
family=gaussian(),...)
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 exa 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érn family, and
lambda
and phi
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.
trace
Not for normal use.
If trace is of the form trace=list(file=,append=F)
, some trace information is written in the file 'filename'.
This file is written over by each new call of corrHLfit
unless append=T
.
objective
The objective function maximized for estimation of parameters by optim
.
Either "p_bv"
for restricted likelihood or "p_v"
for marginal likelihood.
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.