Learn R Programming

biometryassist (version 1.3.0)

vario_df: Calculate the variogram data frame for a model

Description

Calculate the variogram data frame for a model

Usage

vario_df(model.obj, Row = NA, Column = NA)

Value

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.

Arguments

model.obj

An asreml model

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab