KRmodcomp_init: Model input check
Description
Utility functions check the models for KRmodcomp.lmer function.
Not to be used directly by the userUsage
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
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 is the fixed efects space of model m1.