Git Product home page Git Product logo

Comments (3)

lnalborczyk avatar lnalborczyk commented on September 1, 2024

Hi,

I am not 100% certain of what I say below so correct me if you think I am wrong.

According to Howell (link below), it is not possible to calculate 95% confidence intervals around Cohen's d by directly subtracting and adding a constant to d (as it is the case in the effsize cohen.d function, the constant in the source code is called Z = -qt((1 - conf.level)/2, df)).
It makes sense when taking account of the non-central and non-symmetrical distributions of the lower and upper distributions of the non-centrality parameter (ncp) around an observed t-value.

Knowing that, we programmed a little function that is seeking for the ncp that reduces probability at lower and upper boundaries of confidence for Cohen's d (based on a single differential variable, for instance mean after treatment - mean at baseline) using a "fsolve" function.

For independant measures, the idea is the same but the computation of the boundaries is defined by a slight different calculation (see Howell 2010).

Let me know if you have any questions on this method.

Ladislas

https://www.uvm.edu/~dhowell/methods7/Supplements/Confidence%20Intervals%20on%20Effect%20Size.pdf

from effsize.

mtorchiano avatar mtorchiano commented on September 1, 2024

I read the document, and added the computation in the cohen.d function.

from effsize.

mtorchiano avatar mtorchiano commented on September 1, 2024

Available in version 0.6.o

from effsize.

Related Issues (20)

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.