asreml.lrt: Calculate the LRT test for model compare.

asreml.lrtR Documentation

Calculate the LRT test for model compare.

Description

asreml.lrt can Calculate the LRT test for model compare.

Usage

asreml.lrt(m1 = NULL, m2 = NULL)

Arguments

m1

The asreml object

m2

The asreml object

Value

The LRT test for m1 and m2

Author(s)

Dave <Dave@vsni.co.uk>

See Also

model.comp

Examples

library(asreml)
library(vsnc)
data(oats,package = "asreml")
head(oats)
m1 <- asreml(yield ~ 1, random=~Nitrogen*Variety, data=oats)
m2 <- asreml(yield ~ 1, random=~Nitrogen*Variety+Blocks, data=oats)
asreml.lrt(m1,m2)

dengfei2013/learnasreml documentation built on Oct. 25, 2024, 7 a.m.