vgmSCV: Spatially correlated variance (SCV)

View source: R/vgmSCV.R

vgmSCVR Documentation

Spatially correlated variance (SCV)

Description

Compute the proportion of the variance that is spatially correlated.

Usage

vgmSCV(obj, digits = 4)

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

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

## S3 method for class '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.

Author(s)

Alessandro Samuel-Rosa alessandrosamuelrosa@gmail.com

See Also

variogramBins()

Examples

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)
}

samuel-rosa/pedometrics documentation built on June 21, 2022, 11:32 p.m.