Learn R Programming

pedometrics (version 0.12.1)

vgmSCV: Spatially correlated variance (SCV)

Description

Compute the proportion of the variance that is spatially correlated.

Usage

vgmSCV(obj, digits = 4)

# S3 method for variomodel vgmSCV(obj, digits = 4)

# S3 method for variogramModel vgmSCV(obj, digits = 4)

# S3 method for georob vgmSCV(obj, digits = 4)

Arguments

obj

Variogram model fitted with available function in geostatistical packages such as gstat, geoR, and georob.

digits

Integer indicating the number of decimal places to be used.

Value

Numeric value indicating the proportion of the variance that is spatially correlated.

See Also

variogramBins()

Examples

Run this code
# NOT RUN {
if (all(c(require(gstat), require(sp)))) {
  library(gstat)
  library(sp)
  data(meuse)
  sp::coordinates(meuse) <- ~ x + y
  vgm1 <- gstat::variogram(log(zinc) ~ 1, meuse)
  fit <- gstat::fit.variogram(vgm1, gstat::vgm(1, "Sph", 300, 1))
  res <- vgmSCV(fit)
}
# }

Run the code above in your browser using DataLab