Learn R Programming

doBy (version 4.4.0)

modcomp_init: Model input check

Description

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

Usage

modcomp_init(m1, m2, matrixOK)
## S3 method for class 'mer':
modcomp_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. Fihtermore, 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.