vario_df: Calculate the variogram data frame for a model

Description Usage Arguments Value Examples

View source: R/variogram.r

Description

Calculate the variogram data frame for a model

Usage

1
vario_df(model.obj, Row, Col)

Arguments

model.obj

An asreml model

Value

A data frame with the variogram for a model. The data frame contains the spatial coordinaties (typically row and column), the $gamma$ for that position and the number of points with the separation.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

biometryhub/BiometryTraining documentation built on Jan. 27, 2022, 7:52 p.m.