MulaiMulai sekarang secara gratis

Spearman correlation analysis

A Spearman correlation assesses the strength and direction of a monotonic relationship.

A company is interested in assessing the relationship between the time users spend on their website and the amount the users spent. Perform the Spearman correlation test ignoring groups and run the power analysis of the test to determine if there is a significant monotonic relationship in the rankings of these variables and whether the results found are reliable.

The pwr package and webdata dataset have been loaded for you.

Latihan ini adalah bagian dari kursus

A/B Testing in R

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Run the Spearman correlation
___ <- cor.test(___, 
         data = ___, 
         method = ___, exact = ___)
Edit dan Jalankan Kode