vario_df: Calculate the variogram data frame for a model

View source: R/variogram.r

vario_dfR Documentation

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)

Arguments

model.obj

An asreml model

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.

Examples

## 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)


biometryassist documentation built on June 22, 2024, 10:31 a.m.