Code Monkey home page Code Monkey logo

Comments (2)

DominiqueMakowski avatar DominiqueMakowski commented on August 26, 2024 2

closing this, as I think it's fixed!

Also, I don't think for now we should add a second p column for adjusted, as it would break the easy pattern, and moreover conceptually it would be weird to have both; it's like pizza and pineapple, it's one or the other, but you shouldn't have both 😁

from correlation.

DominiqueMakowski avatar DominiqueMakowski commented on August 26, 2024

It works at my place, it's just that iris is too small to have differences between holm and none (but try with p_adjust = "bonf". Or with the attitude dataset:

> correlation(attitude, p_adjust="none")
Parameter1 | Parameter2 |    r |        95% CI |    t | df |      p |  Method | n_Obs
-------------------------------------------------------------------------------------
rating     | complaints | 0.83 | [ 0.66, 0.91] | 7.74 | 28 | < .001 | Pearson |    30
rating     | privileges | 0.43 | [ 0.08, 0.68] | 2.49 | 28 | 0.019  | Pearson |    30
rating     |   learning | 0.62 | [ 0.34, 0.80] | 4.22 | 28 | < .001 | Pearson |    30
rating     |     raises | 0.59 | [ 0.29, 0.78] | 3.87 | 28 | < .001 | Pearson |    30
rating     |   critical | 0.16 | [-0.22, 0.49] | 0.84 | 28 | 0.409  | Pearson |    30
rating     |    advance | 0.16 | [-0.22, 0.49] | 0.83 | 28 | 0.413  | Pearson |    30
complaints | privileges | 0.56 | [ 0.25, 0.76] | 3.56 | 28 | 0.001  | Pearson |    30
complaints |   learning | 0.60 | [ 0.30, 0.79] | 3.94 | 28 | < .001 | Pearson |    30
complaints |     raises | 0.67 | [ 0.41, 0.83] | 4.77 | 28 | < .001 | Pearson |    30
complaints |   critical | 0.19 | [-0.19, 0.51] | 1.01 | 28 | 0.321  | Pearson |    30
complaints |    advance | 0.22 | [-0.15, 0.54] | 1.22 | 28 | 0.233  | Pearson |    30
privileges |   learning | 0.49 | [ 0.16, 0.72] | 3.00 | 28 | 0.006  | Pearson |    30
privileges |     raises | 0.45 | [ 0.10, 0.69] | 2.63 | 28 | 0.014  | Pearson |    30
privileges |   critical | 0.15 | [-0.22, 0.48] | 0.79 | 28 | 0.438  | Pearson |    30
privileges |    advance | 0.34 | [-0.02, 0.63] | 1.93 | 28 | 0.063  | Pearson |    30
learning   |     raises | 0.64 | [ 0.36, 0.81] | 4.41 | 28 | < .001 | Pearson |    30
learning   |   critical | 0.12 | [-0.25, 0.46] | 0.62 | 28 | 0.542  | Pearson |    30
learning   |    advance | 0.53 | [ 0.21, 0.75] | 3.32 | 28 | 0.003  | Pearson |    30
raises     |   critical | 0.38 | [ 0.02, 0.65] | 2.15 | 28 | 0.040  | Pearson |    30
raises     |    advance | 0.57 | [ 0.27, 0.77] | 3.71 | 28 | < .001 | Pearson |    30
critical   |    advance | 0.28 | [-0.09, 0.58] | 1.56 | 28 | 0.129  | Pearson |    30


> correlation(attitude, p_adjust="BH")
Parameter1 | Parameter2 |    r |        95% CI |    t | df |      p |  Method | n_Obs
-------------------------------------------------------------------------------------
rating     | complaints | 0.83 | [ 0.66, 0.91] | 7.74 | 28 | < .001 | Pearson |    30
rating     | privileges | 0.43 | [ 0.08, 0.68] | 2.49 | 28 | 0.033  | Pearson |    30
rating     |   learning | 0.62 | [ 0.34, 0.80] | 4.22 | 28 | 0.001  | Pearson |    30
rating     |     raises | 0.59 | [ 0.29, 0.78] | 3.87 | 28 | 0.002  | Pearson |    30
rating     |   critical | 0.16 | [-0.22, 0.49] | 0.84 | 28 | 0.457  | Pearson |    30
rating     |    advance | 0.16 | [-0.22, 0.49] | 0.83 | 28 | 0.457  | Pearson |    30
complaints | privileges | 0.56 | [ 0.25, 0.76] | 3.56 | 28 | 0.004  | Pearson |    30
complaints |   learning | 0.60 | [ 0.30, 0.79] | 3.94 | 28 | 0.002  | Pearson |    30
complaints |     raises | 0.67 | [ 0.41, 0.83] | 4.77 | 28 | < .001 | Pearson |    30
complaints |   critical | 0.19 | [-0.19, 0.51] | 1.01 | 28 | 0.396  | Pearson |    30
complaints |    advance | 0.22 | [-0.15, 0.54] | 1.22 | 28 | 0.306  | Pearson |    30
privileges |   learning | 0.49 | [ 0.16, 0.72] | 3.00 | 28 | 0.012  | Pearson |    30
privileges |     raises | 0.45 | [ 0.10, 0.69] | 2.63 | 28 | 0.026  | Pearson |    30
privileges |   critical | 0.15 | [-0.22, 0.48] | 0.79 | 28 | 0.459  | Pearson |    30
privileges |    advance | 0.34 | [-0.02, 0.63] | 1.93 | 28 | 0.095  | Pearson |    30
learning   |     raises | 0.64 | [ 0.36, 0.81] | 4.41 | 28 | < .001 | Pearson |    30
learning   |   critical | 0.12 | [-0.25, 0.46] | 0.62 | 28 | 0.542  | Pearson |    30
learning   |    advance | 0.53 | [ 0.21, 0.75] | 3.32 | 28 | 0.006  | Pearson |    30
raises     |   critical | 0.38 | [ 0.02, 0.65] | 2.15 | 28 | 0.065  | Pearson |    30
raises     |    advance | 0.57 | [ 0.27, 0.77] | 3.71 | 28 | 0.003  | Pearson |    30
critical   |    advance | 0.28 | [-0.09, 0.58] | 1.56 | 28 | 0.181  | Pearson |    30

from correlation.

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.