varioGram.asreml {asreml} | R Documentation |
Calculate the empirical variogram from an asreml
object.
## S3 method for class 'asreml' varioGram(object, type = "default", spatial = "trend", formula = ~NULL, composite = TRUE, model = c("empirical"), metric = c("euclidean", "manhattan"), angle = 0, angle.tol = 180, nlag = 20, maxdist = 0.5, xlag = NA, lag.tol = 0.5, grid = TRUE, ...)
object |
An object of class |
type |
Type of residuals, see |
spatial |
Whether to include a nugget effect; see
|
formula |
An optional model formula designed to extract
residuals from the random component of the model
rather than the residual component. This is a two sided
formula where the response is a pattern in the style required by
the |
composite |
The argument to |
model |
The argument to |
metric |
The argument to |
angle |
The argument to |
angle.tol |
The argument to |
nlag |
The argument to |
maxdist |
The argument to |
xlag |
The argument to |
lag.tol |
The argument to |
grid |
The argument to |
... |
Additional arguments. |
Calls asr_varioGram
to calculate the empirical
semi-variogram.
A data frame including the following components:
The original x coordinates.
The original y coordinates.
The variogram estimate.
The average distance for pairs in the lag.
The number of pairs in the lag.
Direction if not a regular grid.
## Not run: data(barley) shf.asr <- asreml(yield ~ Variety, residual = ~ ar1(Row):ar1(Column), data=shf) varioGram(shf.asr) ## End(Not run)