Description Usage Arguments Value Author(s) See Also Examples
Polynomials of different degrees can be fitted to the spatial/spatio-temporal correlogram calculated using calcBins. This function will be used to adjust the copula parameter in the spatial/spatio-temporal copula.
1 2  | 
bins | 
 Typically the output of   | 
degree | 
 The degree of polynomial to be fitted - recycled if needed.  | 
cutoff | 
 Maximal distance to which lags should be included in the polynomial fit.  | 
tlags | 
 The temporal lags used for the genration of   | 
bounds | 
 Bounds of the correlation values. The default is set [0,1] not allowing any negative relationship but perfect positive dependence.  | 
cor.method | 
 The output of   | 
weighted | 
 shall the residuals be weighted by the number of points in the lag class?  | 
Returns a one/two-place function that provides correlation estimates for every separating spatial/spatio-temporal distance.
Benedikt Graeler
See also calcBins and spCopula.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  | # a simplified bins object (from demo(spcopula))
bins <- list(meanDists=c(64, 128, 203, 281, 361, 442, 522, 602, 681, 760), 
             lagCor=c(0.57,  0.49, 0.32, 0.29, 0.15, 0.14, 0.10, -0.00, 0.03, -0.01))
attr(bins,"cor.method") <- "kendall"
# plot the correlogram
plot(lagCor~meanDists,bins)
# fit and plot a linear model
calcKTauLin <- fitCorFun(bins, degree=1, cutoff=600)
curve(calcKTauLin,0, 1000, col="red",add=TRUE)
# fit and plot a polynomial model
calcKTauPol <- fitCorFun(bins, degree=5)
curve(calcKTauPol,0, 1000, col="purple",add=TRUE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.