Git Product home page Git Product logo

Comments (4)

raphaelvallat avatar raphaelvallat commented on August 24, 2024

Hi @samuelstjean ! Thanks for this!

  1. A quick workaround is to call separately each factor that you are interested in, e.g.:

pg.pairwise_ttests(..., between="fac1")

followed by

pg.pairwise_ttests(..., between="fac2")

instead of pg.pairwise_ttests(..., between=["fac1", "fac2"])

I'll try to add an option to test only the interaction or main effect in future release.

  1. I agree with you on this point; the current implementation is designed for flexibility, but not really for speed / memory efficiency (in my field of research we rarely apply T-tests on more than 1000 rows so memory has never been an issue). I'll try to look into that in future releases but please feel free to have a look at the code and suggest any ideas to improve this.

Thanks!
Raphael

from pingouin.

samuelstjean avatar samuelstjean commented on August 24, 2024

Ah yes, kind of did that, I cheated by taking parts of my panda frame (reusing the same memory array every time), calling the whole thing on it, and finally re-computing correct pvals for the final result, therefore avoiding the interaction effects.

I guess it's a bit too specific, but well for general purpose tests (and other fields) it may be helpful indeed. I'm afraid I'm a bit busy to have a shot at it myself before at least november though, thesis writing and everything.

from pingouin.

raphaelvallat avatar raphaelvallat commented on August 24, 2024
  • Added interaction argument to pairwise_ttests in cef2a0f
  • Currently working on improving speed and memory

from pingouin.

raphaelvallat avatar raphaelvallat commented on August 24, 2024

Minor improvements in speed and memory:

These changes are available on the develop branch and will be released in Pingouin 0.2.9 (sometimes in September).
Closing the issue for now but please feel free to reopen.
Thanks
Raphael

from pingouin.

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.