unistbig / metapro

5 stars 1 forks source link

wZ get different pvalue #4

Open SkymayBlue opened 2 years ago

SkymayBlue commented 2 years ago

Thank for your packages! I install it but when I test it with the example,I get this thouble : function wZ get different p-value as blow.
` library(metapro) library(rSymPy) sympyStart()

ordmeta(p=c(0.01, 0.02, 0.8, 0.25), is.onetail=FALSE, eff.sign = c(1,1,1,-1))

$p [1] 0.004427233

$optimal_rank [1] 2

$eff.p.idx [1] 1 2

$MMP [1] 0.00059203

$overall.eff.direction [1] "+"

wZ(p=c(0.01, 0.02, 0.8, 0.25), weight = c(200, 500, 100, 80), is.onetail=FALSE, eff.sign = c(1,1,1,-1)) $p [1] 0.003596313

$overall.eff.direction [1] "+"

$sumz [1] 2.911558 `

ysora commented 1 year ago

Hi, Sorry for the late response. I didn't check this GitHub page for a while. ordmeta and wZ are different p-value combining methods, therefore the result combined p-value can be different between two.