Open LukasWallrich opened 1 year ago
@LukasRoeseler thanks - reopening this because I need to implement it.
Also, do I understand correctly that this returns Cohen's d? Does this make any sense if you are meta-analyzing different ESs, e.g., ORs?
@LukasWallrich we could convert the output to a target effect size but at this point I am not sure whether we should rather drop p-curve. Let me know if I should prepare code to convert the p-curve effect size estimate.
In my example dataset, Barroso et al., the effect size is given as Fisher's z which should be similar to d - but the p-curve effect size estimate is twice as large as all others - so I am not sure whether I trust this, and to generalise the ES conversion might be rather difficult ... so I removed these estimates for now.
Apart from requiring no sign for the test statistics, the p-curve function estimates absolute effect sizes only. We might want the sign to match that from one of the other methods.
Below is the section from Matthias Harrer's function (dmetar package, https://raw.githubusercontent.com/MathiasHarrer/dmetar/master/R/pcurve2.R):
Define ci.to.t function