This method function performs a Cochran Q test of (residual) heterogeneity on fitted univariate or multivariate meta-analytical models represented in objects of class "mvmeta"
.
# S3 method for mvmeta
qtest(object, …)# S3 method for qtest.mvmeta
print(x, digits=3, …)
objects of classes "mvmeta"
and "qtest.mvmeta"
, respectively.
an integer specifying the number of digits to which printed results must be rounded.
further arguments passed to or from other methods.
A list object of class "qtest.mvmeta"
with the following components:
the vector of test statistics for overall and outcome-specific tests, distributed under the null hypothesis as a Chi-square with degrees of freedom df
.
the vector of degrees of freedom of the null distribution for overall and outcome-specific tests. For the overall test, equal to the number of observations used for estimation minus the number of coefficients in the fixed part of the model. For outcome-specific test, equal to number of observed values minus the number of coefficients.
the vector of p-values for overall and outcome-specific tests.
logical switch indicating if a meta-regression model is assessed, meaning that the tested heterogeneity is residual.
dimensionality of the overall test, that is the number of outcome parameters in the model.
As usual, the print method function for class "qtest.mvmeta" does not return any value.
In multivariate models, the test assesses the null hypothesis that the variability in the multivariate distribution of the outcomes is explained only in terms of estimation error in each study, measured by the within-study (co)variance matrices stored in the component S
of mvmeta
objects. This is equal to test the hypothesis that the between-study (co)variance matrix is a zero matrix, and there is no random deviation in study-specific estimates. Tests for single outcome parameters, comparable to estimates from multiple univariate meta-analysis, are also reported. This test reduces to the standard Q test in univariate models.
The function compute the statistics by actually fitting the related fixed-effects model, re-evaluating the call of the model with method
changed to "fixed"
.
Sera F, Armstrong B, Blangiardo M, Gasparrini A (2019). An extended mixed-effects framework for meta-analysis.Statistics in Medicine. 2019;38(29):5429-5444. [Freely available here].
Gasparrini A, Armstrong B, Kenward MG (2012). Multivariate meta-analysis for non-linear and other multi-parameter associations. Statistics in Medicine. 31(29):3821--3839. [Freely available here].
Berkey, CS, Hoaglin DC, et al. (1998). Meta-analysis of multiple outcomes by regression with random effects. Statistics in Medicine. 17(22):2537--2550.
Ritz J, Demidenkob E, Spiegelman G (2008). Multivariate meta-analysis for data consortia, individual patient meta-analysis, and pooling projects. Journal of Statistical Planning and Inference. 139(7):1919--1933.
See qtest
for the generic method function. See mvmeta-package
for an overview of the package and modelling framework.
# NOT RUN {
# RUN THE MODEL
model <- mvmeta(cbind(PD,AL)~1,S=berkey98[5:7],data=berkey98)
# MULTIVARIATE COCHRAN Q TEST FOR HETEROGENEITY
test <- qtest(model)
print(test,digits=2)
unclass(test)
# }
Run the code above in your browser using DataLab