Description Usage Arguments Details Value WARNINGS Author(s) References See Also Examples
View source: R/deleteZeroComponents.R
Is used in the cAIC
function if method = "steinian"
and
family = "gaussian"
. The function deletes all random effects terms
from the call if corresponding variance parameter is estimated to zero and
updates the model in merMod
.
1 2 3 4 5 6 7 | deleteZeroComponents(m)
## S3 method for class 'lme'
deleteZeroComponents(m)
## S3 method for class 'merMod'
deleteZeroComponents(m)
|
m |
An object of class |
For merMod
class models:
Uses the cnms
slot of m
and the relative covariance factors to
rewrite the random effects part of the formula, reduced by those parameters
that have an optimum on the boundary. This is necessary to obtain the true
conditional corrected Akaike information. For the theoretical justification
see Greven and Kneib (2010). The reduced model formula is then updated. The
function deleteZeroComponents is then called iteratively to check if in the
updated model there are relative covariance factors parameters on the
boundary.
For lme
class models:
...
An updated object of class merMod
or of class lme
.
NULL
NULL
For models called via gamm4
or gamm
no automated update is available.
Instead a warning with terms to omit from the model is returned.
Benjamin Saefken \& David Ruegamer \& Philipp Baumann
Greven, S. and Kneib T. (2010) On the behaviour of marginal and conditional AIC in linear mixed models. Biometrika 97(4), 773-789.
1 2 3 4 | ## Currently no data with variance equal to zero...
b <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
deleteZeroComponents(b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.