Description Usage Arguments Details Value Author(s) References See Also Examples
The function tests whether a set of pvalues are heterogeneous.
1  test.hetero.test(p, weight, na.rm = FALSE)

p 
vector of pvalues 
weight 
vector of weights (e.g. sample size of each study) 
na.rm 

The pvalues should be onesided and computed from the same null hypothesis.
Q 
Q statistic 
p.value 
pvalue of the heterogeneity test 
Benjamin HaibeKains
Cochrane, W. G. (1954) "The combination of estimates from different experiments", Biometrics, 10, pages 101–129.
Whitlock, M. C. (2005) "Combining probability from independent tests: the weighted Zmethod is superior to Fisher's approach", J. Evol. Biol., 18, pages 1368–1373.
1 2 3 4 5 6 7  p < c(0.01, 0.13, 0.07, 0.2)
w < c(100, 50, 200, 30)
#with equal weights
test.hetero.test(p=p)
#with pvalues weighted by the sample size of the studies
test.hetero.test(p=p, weight=w)

Loading required package: survival
Loading required package: prodlim
$Q
[1] 1.243275
$p.value
[1] 0.7426449
$Q
[1] 94.16364
$p.value
[1] 2.792858e20
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.