| wald_mmes | R Documentation |
Pseudo analysis of variance for the fixed terms of an mmes fit,
based on incremental or conditional Wald statistics, with chi-square,
residual, Satterthwaite or Kenward-Roger reference distributions.
wald_mmes(object, ssType = c("incremental", "conditional"),
denDF = c("none", "residual", "satterthwaite", "kr"), terms = NULL)
object |
a model of class |
ssType |
|
denDF |
|
terms |
optional subset of fixed terms (as named in |
Let \Phi be the covariance of the fixed effects and M=\Phi^{-1}.
For a given order of the terms, the upper Cholesky factor U of M
defines z=U b; the incremental Wald statistic of a term is the sum of the
squared elements of z belonging to it, i.e. a test of L b=0 with
L the corresponding rows of U. Conditional tests use the order
[terms not containing the tested term, tested term, terms containing it].
For Satterthwaite and Kenward-Roger df the model inputs are rebuilt from the
stored call and X^\top V^{-1}X is re-evaluated at perturbed covariance
parameters (on the reported scale of covPar); its numerical first and
second derivatives give the quantities P_i and the Kenward-Roger
adjustment. The covariance of the covariance parameters is theta_se,
the inverse average information. The second-derivative term of V
enters through the Hessian of X^\top V^{-1}X; it vanishes for
variance-component models, where the method is the exact Kenward-Roger
approximation. Because the average (rather than expected) information is
used, df can differ slightly from software using the expected information.
The re-evaluation requires the data and objects used in the original call
to be available, REML estimation, and a Gaussian fit.
anova(object) with a single model returns wald_mmes(object, ...).
A data frame of class "wald.mmes" with columns Df,
denDF, Wald, F.value and p.value, one row per term.
Kenward MG and Roger JH (1997). Small sample inference for fixed effects from restricted maximum likelihood. Biometrics 53: 983-997.
mmes, predict.mmes, anova.mmes
data(DT_yatesoats, package = "enhancer")
m <- mmes(Y ~ V * N,
random = ~ B + B:MP,
rcov = ~ units,
data = DT_yatesoats,
control = mmes_control(diagnostics = list(verbose = FALSE)))
wald_mmes(m)
wald_mmes(m, ssType = "conditional", denDF = "kr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.