Description Usage Arguments Details Value Author(s) Examples
View source: R/EffectiveRange.R
It computes the effective range for an isotropic spatial correlation function, which is commonly defined to be the distance from which the correlation becomes small, typically below 0.05.
1 | EffectiveRange(cor = 0.05, phi, kappa = 0, Sp.model = "exponential")
|
cor |
effective correlation to check for. By default = 0.05. |
phi |
spatial scaling parameter. |
kappa |
smoothness parameter, required by the matern and power exponential functions. By default = 0. |
Sp.model |
type of spatial correlation function: ' |
The available isotropic spatial correlation functions are:
Corr(d) = exp{-d/φ},
Corr(d) = exp{-(d/φ)^2},
Corr(d) = 1/(2^(κ-1)Γ(κ))(d/φ)^κ K_κ(d/φ),
Corr(d) = exp{-(d/φ)^κ},
Corr(d) = 1 - 1.5 d/φ + 0.5(d/φ)^3,
where d is the Euclidean distance between two observations, φ is the spatial scaling parameter, Γ(.) is the gamma function, κ is the smoothness parameter and K_κ(.) is the modified Bessel function of the second kind of order κ.
The function returns the effective range, i.e., the approximate distance from which the
spatial correlation is lower than cor.
Katherine L. Valeriano, Victor H. Lachos and Larissa A. Matos
1 2 3 4 | phi <- 164.60
range1 <- EffectiveRange(0.05, phi, kappa=0, Sp.model="exponential")
range2 <- EffectiveRange(0.05, phi, kappa=1, Sp.model="pow.exp")
# Note that these functions are equivalent.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.