Last chance! 50% off unlimited learning
Sale ends in
object
, according to the distances in distance
.
For each pair of elements $x,y$ in object
, the
corresponding semi-variogram is $(x-y)^2/2$. The semi-variogram is
useful for identifying and modeling spatial correlation structures in
observations with constant expectation and constant variance.Variogram(object, distance)
object
. The order of the
elements in distance
must correspond to the pairs
(1,2), (1,3), ..., (n-1,n)
, with n
repvariog
and dist
representing,
respectively, the semi-variogram values and the corresponding
distances. The returned value inherits from class Variogram
.Variogram.gls
, Variogram.lme
,
plot.Variogram
data(Ovary)
fm1 <- lm(follicles ~ sin(2 * pi * Time) + cos(2 * pi * Time), Ovary,
subset = Mare == 1)
Variogram(resid(fm1), dist(1:29))[1:10,]
Run the code above in your browser using DataLab