fit_multiple_variogram: Fitting Multiple Variograms

View source: R/fit_multiple_variogram.R

fit_multiple_variogramR Documentation

Fitting Multiple Variograms

Description

This function returns experimental and fitted variogram information for multiple variables. For each variable autofitVariogram is used. The function supports spatial data in simple features (sf), SpatialPointsDataFrame(sp) or data.frame. If the input data is in data.frame, the X, and Y should be present in the data as variables.

Usage

fit_multiple_variogram(data, coords = c("X", "Y"), length = 99)

Arguments

data

input data set one of sp, sf or data.frame with X and Y as variables

coords

(vector) pair of coordinates if data type is aspatial

length

(integer) the length of sequence used to produced fitted data.

Value

A data frame with combined information from all variables as response is returned. The data.frame contains the experimental variogram information, the fitted variogram model information. The sums of squares (sserr) between the sample variogram dropped, For further information please refer to autofitVariogram or fit_variogram

References

automatp: A index page for automap package on CRAN

Hiemstra, P.H., Pebesma, E.J., Twenhofel, C.J.W. and G.B.M. Heuvelink, 2008. Real-time automatic interpolation of ambient gamma dose rates from the Dutch Radioactivity Monitoring Network. Computers & Geosciences.DOI:

See Also

autofitVariogram, fit_variogram, plot_variogram

Examples


## Read data
data(landcover)
# subset data

lcdat <- landcover[, c("MBLU", "MNDVI", "MNIR", "MPC1", "MPC2", "MPC23", "MRED", "MSAVI")]

# fit variograms

fmv <- fit_multiple_variogram(data = lcdat,coords = NULL,length = 99 )

## Not run: 
data("landcover")
fit_multiple_variogram(data = landcover,coords = NULL, length = 99)

## End(Not run)


suvedimukti/stdcab documentation built on Aug. 7, 2023, 2:28 p.m.