Learn R Programming

pbkrtest (version 0.3-7)

KRmodcomp_init: 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

Value

  • code-1: =, 0: < , 1: >

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 is the fixed efects space of model m1.

See Also

lmer.