Git Product home page Git Product logo

Comments (8)

strengejacke avatar strengejacke commented on June 18, 2024

Where do you see discrepancies?

esc::esc_2x2(
  grp1yes = 205,
  grp1no = 98,
  grp2yes = 512,
  grp2no = 178,
  es.type = "or"
)
#> 
#> Effect Size Calculation for Meta Analysis
#> 
#>      Conversion: 2x2 table (OR) coefficient to effect size odds ratio
#>     Effect Size:   0.7272
#>  Standard Error:   0.1505
#>        Variance:   0.0227
#>        Lower CI:   0.5415
#>        Upper CI:   0.9768
#>          Weight:  44.1438

Created on 2022-02-24 by the reprex package (v2.0.1)

image

from esc.

strengejacke avatar strengejacke commented on June 18, 2024

And for logits:

esc::esc_2x2(
  grp1yes = 205,
  grp1no = 98,
  grp2yes = 512,
  grp2no = 178
)
#> 
#> Effect Size Calculation for Meta Analysis
#> 
#>      Conversion: 2x2 table (OR) to effect size logits
#>     Effect Size:  -0.3185
#>  Standard Error:   0.1505
#>        Variance:   0.0227
#>        Lower CI:  -0.6135
#>        Upper CI:  -0.0235
#>          Weight:  44.1438

Created on 2022-02-24 by the reprex package (v2.0.1)

from esc.

djmeter avatar djmeter commented on June 18, 2024

The discrepancy was in the r calculation, not OR. Thanks!

from esc.

strengejacke avatar strengejacke commented on June 18, 2024

The calculator returns RR, not r.

from esc.

djmeter avatar djmeter commented on June 18, 2024

Ok, the esc package documentation says differently, but it is helpful to know that. Thank you.
Diana

from esc.

strengejacke avatar strengejacke commented on June 18, 2024

Ok, the esc package documentation says differently

Not sure what you mean here? The function returns the effect size that is given in the es.type argument, which is by default logits. The web-based 'Practical Meta-Analysis Effect Size Calculator' returns OR, which you can also return from esc_2x2(), and the results are the same.

from esc.

xm0557 avatar xm0557 commented on June 18, 2024

I also encountered this problem. esc_2x2(23,29,10,3, es.type="r")gave r = -0.3019; but the website showed different results.
截屏2022-06-21 10 09 44

from esc.

xm0557 avatar xm0557 commented on June 18, 2024

Furthermore, esc_2x2(23,29,10,3, es.type="r")give different result from esc_2x2(23,10,29,3, es.type="r").

from esc.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.