vario_df | R Documentation |
Calculate the variogram data frame for a model
vario_df(model.obj, Row = NA, Column = NA)
model.obj |
An asreml model |
A data frame with the variogram for a model. The data frame contains the spatial coordinates (typically row and column), the gamma
for that position and the number of points with the separation.
## Not run:
library(asreml)
oats <- asreml::oats
oats <- oats[order(oats$Row, oats$Column),]
model.asr <- asreml(yield ~ Nitrogen + Variety + Nitrogen:Variety,
random = ~ Blocks + Blocks:Wplots,
residual = ~ ar1(Row):ar1(Column),
data = oats)
vario_df(model.asr)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.