| KRmodcomp_init {pbkrtest} | R Documentation |
Utility functions check the models for KRmodcomp.lmer function. Not to be used directly by the user
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)
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 |
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.
code |
-1: <m1> =<m2>, 0: <m1> < <m2>, 1: <m1> > <m2> |
Ulrich Halekoh ulrich.halekoh@agrsci.dk, Søren Højsgaard sorenh@math.aau.dk
lmer.