Open mattansb opened 1 year ago
Let's a few options here for CI methods and computing SD ratio instead, pulling them from the metafor::escalc() code.
(SD ratios are often called variation/variance ratios in biology and ecology work.)
Maybe let's call the function variation_ratio()
?
For independents samples, metafor
uses these (with the +1/(2 * (n1i - 1)) -1/(2 * (n2i - 1))
small sample bias correction):
yi <- log(sd1i/sd2i) + 1/(2 * (n1i - 1)) - 1/(2 * (n2i - 1))
vi <- 1/(2 * (n1i - 1)) + 1/(2 * (n2i - 1))
What should vi
be here if the correction is not applied? 🤔
Maybe let's call the function
variation_ratio()
?
Sure.
vi is the same -- the adjustment is an additive constant so it doesn't affect the variance because of the calculus
Oh right, duh 🤦♂️
Codecov Report
Attention:
2 lines
in your changes are missing coverage. Please review.Additional details and impacted files
```diff @@ Coverage Diff @@ ## main #619 +/- ## ========================================== + Coverage 90.74% 90.90% +0.16% ========================================== Files 57 58 +1 Lines 3564 3617 +53 ========================================== + Hits 3234 3288 +54 + Misses 330 329 -1 ```:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.