# \donttest{
data("crd_simulated")
#Geodata object
geodados <- as.geodata(crd_simulated, coords.col = 1:2, data.col = 3,
covar.col = 4)
h_max <- summary(geodados)[[3]][[2]]
dist <- 0.6*h_max
# Computing the variogram
variograma <- spVariog(geodata = geodados,
trend = "cte", max.dist = dist, design = "crd",
scale = FALSE)
plot(variograma, ylab = "Semivariance", xlab = "Distance")
# Gaussian Model
ols <- spVariofit(variograma, cov.model = "gaussian", weights = "equal",
max.dist = dist)
lines(ols, col = 1)
# Compute the model and get the analysis of variance table
mod <- aovGeo(ols, cutoff = 0.6)
# Multivariate T test
spMVT(mod)
# }
Run the code above in your browser using DataLab