------------------------------------------------------------------------------- help for powerq -------------------------------------------------------------------------------
Power for Cochran´s Q statistic and posterior probability of heterogeneity in a > meta-analysis
powerq varlist , method(name) [alpha(#) tau2(#) replicates(#) graph]
where varlist can be: 4 variables: 2x2 table cell counts in the same order as supplied in metan, e.g. tdeath tnodeath cdeath cnodeath 2 variables: the first is the ln of the effect size estimate and the second the standard error of ln of the effect size estimate. Only the method of jackson can be used with these kind of data.
Description
powerq computes the statistical power for the Cochran´s Q statistic and calculates the posterior probability of heterogeneity in a meta-analysis of K studies.The program handles with both summary data (i.e. effect size and standard error) and 2x2 tables. Power for the Q-test is computed as a function of the information available for the meta-analysis (e.g. study sizes, study weights, Q value and/or tau2 observed) depending on the method specificied, as well as the alpha level choosen and between-study variance. A total of four methods are available to calculate the power of the Q test (see below), whereas the posterior probability of heterogeneity in the meta-analysis is assessed using the approach dicussed in detail by Salanti et al. (submitted). A graphical output is also available.
Options
method is the approach to compute the power of the Q test. It takes the values: jackson gardiner hedges or simulation.
alpha stands for the alpha level to claim statistal significance. By default, alpha=0.1 is used. Values can be between 0-1. One can set the alpha level to be equal to the estimated p-value of the Q-test. To do so use 999. tau2 is the choosen between-study variance required for the determination of power at a given significance level. If no value is specified then the default value of 0.17989 will be used (see the published paper for more details). Set to 999 to use the tau2 of the specific meta-analysis.
replicates is the number of replications applied to compute the power of the Q test when either the simulation or gardiner options are specified. By default, 1000 replicates are used.
Examples
--------------------------------- | Event Non-event | --------------------------------- Exposed | a b | Non-exposed | c d | ---------------------------------
in which a b c d are the cell counts for the 2x2 table.
. use http://www.dhe.med.uoi.gr/assets/STATA/CD000213.dta
Calculate the posterior probability of heterogeneity using the method o > f jackson to obtain the power of Q. Alpha is set to 0.1, tau2 to the default > 0.17989. 2x2 table is used.
. powerq a b c d, method(jackson)
(click to run) Calculate the posterior probability of heterogeneity using the method o > f jackson to obtain the power of Q. Alpha is set to the p-value, tau2 to the > default 0.17989. 2x2 table is used.
. powerq a b c d, method(jackson) alpha(999)
(click to run)
Calculate the posterior probability of heterogeneity using the method o > f jackson to obtain the power of Q. Alpha is set to the p-value, tau2 to the > meta-analysis specific tau2. 2x2 table is used.
. powerq a b c d, method(jackson) alpha(999) tau2(999)
(click to run)
Calculate the posterior probability of heterogeneity using simulation t > o obtain the power of Q. Alpha is set to the p-value, tau2 to the meta-analys > is specific tau2. 2x2 table is used. Number of replications are set to the de > fault. . powerq a b c d, method(simulation) alpha(999) tau2(999)
(click to run)
Calculate the posterior probability of heterogeneity using simulation t > o obtain the power of Q. Alpha is set to the p-value, tau2 to the meta-analys > is specific tau2. 2x2 table is used. Number of replications are set to 10,000 > .
. powerq a b c d, method(simulation) alpha(999) tau2(999) rep(10000)
(click to run) Calculate the posterior probability of heterogeneity using the method o > f jackson to obtain the power of Q. Alpha is set to the p-value, tau2 to the > meta-analysis specific tau2. Inverse variance data are used (ln of effect siz > e and respective standard error). Ask for a graph.
. gen logor = ln( (a*d)/(b*c) ) // if the effect size is OR
(click to run)
. gen selogor = sqrt( (1/a) + (1/b) + (1/c) + (1/d) ) // if the effect > size is OR
(click to run)
. powerq logor selogor, method(jackson) alpha(999) tau2(999) graph
(click to run)
Returned values
r(probHeter1) posterior probability of heterogeneity for 1% p > rior probability r(probHeter..) posterior probability of heterogeneity for ..% > prior probability r(probHeter99) posterior probability of heterogeneity for 99% > prior probability r(power) power of Q test r(p_Q) p-value of Q test r(df) degreed of freedom of Q test r(Q) value of Q test
Authors
Nikolaos A Patsopoulos, Department of Hygiene and Epidemiology University of Ioannina School of Medicine, Greece Tiago V Pereira, Department of Biochemsitry and Molecular Biology Federal University of São Paulo, and Heart Institute (InCor), Brazil
Reference
Salanti G, Patsopoulos NA, Pereira TV, Ioannidis JPA. How likely is that a meta-analysis has heterogeneity? (submitted)
References for methods to calculate power of Q test
Jackson D. The power of the standard test for the presence of heterogeneity in meta-analysis. Statistic in Medicine 25(15):2688-99, 2006
Gardiner J, Pathak D, Indurkhya A. Power calculations for detecting interaction in stratified 2 x 2 tables Statistics & Probability Letters 41(3):267-275, 1999.
Hedges LV, Pigott TD. The power of statistical tests in meta-analysis. Psycholical Methods 6(3):203-17, 2001
Support
npatsop@cc.uoi.gr npatsop@gmail.com tiago.pereira@incor.usp.br
Also see
On-line: help for metan