control.dist$rho.mapping
.make.scaled.dist(uniqueGeo, uniqueGeo2=NULL, distMatrix, rho,
rho.mapping=seq_len(length(rho)),
dist.method="Euclidean")
uniqueGeo
locations are computed. Otherwise, scaled distances between locations in the two input matrices * rho
, unless a non-trivial
rho.mapping
is used.rho
scale vector scales which dimension(s) of the space in which (spatial)
correlation matrices of random effects are computed. Scaled distance is generally computed as
method
argument of proxy::dist
function (by default, "Euclidean"
, but e.g. "Geodesic"
can be used to compute spherical distances.dist
object. If there are two input matrices, rows of the return value correspond to rows of the first matrix.distMatrix
argument if provided, in which case rho must be a scalar. Vectorial rho
(i.e., different scaling of different dimensions) is feasible only by providing uniqueGeo
.## a biologically not very meaningful, but syntactically correct example of rho.mapping
data(blackcap)
corrHLfit(migStatus ~ 1 + Matern(1|latitude+longitude+means),data=blackcap,
objective="p_v",HLmethod="ML",ranFix=list(nu=0.5),init.corrHLfit=list(rho=c(1,1)),
control.dist=list(rho.mapping=c(1,1,2)))
Run the code above in your browser using DataLab