KRmodcomp_init {pbkrtest}R Documentation

Model input check

Description

Utility functions check the models for KRmodcomp.lmer function. Not to be used directly by the user

Usage

KRmodcomp_init(m1, m2, matrixOK=FALSE)
## S3 method for class 'mer'
KRmodcomp_init(m1, m2, matrixOK=FALSE)
## S3 method for class 'lmerMod'
KRmodcomp_init(m1, m2, matrixOK=FALSE)

Arguments

m1

lmer model

m2

lmer model or restriction matrix

matrixOK

if FALSE then m2 must not be a restriction matrix but a lmer model, if TRUE m2 may also be a resteriction matrix

Details

The function checks whether m1 is an lmer model and m2 either an lmer model or a restriction matrix. Furthermore, it is checkes whether the fixed effects space of m2 is a subspace of m1. In the following <m1> is the fixed efects space of model m1.

Value

code

-1: <m1> =<m2>, 0: <m1> < <m2>, 1: <m1> > <m2>

Author(s)

Ulrich Halekoh ulrich.halekoh@agrsci.dk, Søren Højsgaard sorenh@math.aau.dk

See Also

lmer.


[Package pbkrtest version 0.3-8 Index]