Giter VIP home page Giter VIP logo

Comments (2)

rezakj avatar rezakj commented on August 25, 2024

Hi Yale,

Thank you, yes! It's the general r "cor.test" function that by default takes "pearson". Thanks for reminding me, I will add the option to change methods in the future. It is a bit of a lazy coding but yes.
I think at the time I wanted to replace 0 with the smallest p value because for some reason R was converting them to 0. But I will look into it in the future. Generally they are also represented with 4 stars (****) for p < 0.00001. If you want the exact very small p number you can run the "cor.test" outside of the function on the imputed data.

Hope this helps :)

Reza

from icellr.

Yale73 avatar Yale73 commented on August 25, 2024

Hi Reza,

You are right, they always report 0 if it is very small. Your code seems to keep the real p-value, right? As I always get XXe-267 or XXe-578, etc.

Also, I compared Pearson and Spearman, it seems Spearman is more suitable for single-cell data, as it considers the ordinal variables. Then can you tell me why you set the default Pearson?

Thanks for any correction.

Best,
Yale

from icellr.

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.