Formula for spearman correlation

Everything related to development of the jamovi platform
Post Reply
Hanna 12345
Posts: 2
Joined: Sun Sep 03, 2023 1:30 pm

Formula for spearman correlation

Post by Hanna 12345 »

What formula does Jamovi 2.4.5.0. use for Spearmans rho? Is there a correction for tied ranks?
User avatar
jonathon
Posts: 2627
Joined: Fri Jan 27, 2017 10:04 am

Re: Formula for spearman correlation

Post by jonathon »

jamovi uses the cor.test(..., method='spearman') from R to calculate spearman's rho.

if you go noodling through the docs from R, you should be able to find what you need.

https://github.com/jamovi/jmv/blob/mast ... x.b.R#L223

cheers

jonathon
User avatar
seol
Posts: 170
Joined: Mon Dec 04, 2017 8:40 am
Location: Seoul, Korea
Contact:

Re: Formula for spearman correlation

Post by seol »

Hi

seolmatrix module uses the following R package to compute spearman cor.

# compute spearman correlation with psych package--------

spear <- psych::corr.test(mydata, method="spearman")

Best
Seol
Hanna 12345
Posts: 2
Joined: Sun Sep 03, 2023 1:30 pm

Re: Formula for spearman correlation

Post by Hanna 12345 »

Thank you!
Post Reply