Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Different Pearson's-r values when calculating correlation in JASP and R-studio

Hello

I have a very simple set of data - 39 rows, no missing data.

When I'm using r-studio to calculate person's r using cor.test, the value is 0.68.

the same data in JASP gives a value of 0.78.

Both my r-studio and JASP are up-to-date, and I calculate Pearson's r in both.

Any idea why this large difference?

Comments

  • The difference should be 0. Can you show a screenshot and/or upload the data file?

    EJ

  • Sure and thank you EJ!

    the "isr_exp2" is the actual data.

    the "all_subject_with..." is the csv file created by the r-code (also attached).

    This is also the file i used for JASP.

    The correlation is between the columns "can_same" and "diff"


  • If I read the file you use for your JASP analysis into R, and then execute cor.test, I get the same result as with JASP:

    EJ

  • edited October 2024

    Thanks! so I need to find out why my code gets the data from other places...

Sign In or Register to comment.