| isNewMerMod | R Documentation |
isNewMerMod tests if a merMod object has
the latest representation (in other words, if the object could have
been generated using the current version of lme4). The
representation of a merMod object was last changed in
lme4 version 2.0-0.
forceNewMerMod updates a merMod object so
that it has the latest representation. It is useful in code that
might handle objects generated by old versions of lme4.
anyStructured tests if a merMod object
specifies random effects with structured covariance matrices.
isNewMerMod(object)
forceNewMerMod(object, reference = object)
anyStructured(object)
object, reference |
|
isNewMerMod and anyStructured return TRUE or
FALSE.
forceNewMerMod returns the argument if it is “current”
and a modified copy of the argument otherwise.
Virtual class Covariance.
fm1 <- lmer(Reaction ~ Days + us(Days | Subject), sleepstudy)
fm2 <- lmer(Reaction ~ Days + diag(Days | Subject), sleepstudy)
stopifnot(isNewMerMod(fm1), identical(fm1, forceNewMerMod(fm1)),
!anyStructured(fm1), anyStructured(fm2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.