Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a function to calculating Spearman correlation #143

Open
BinglinW opened this issue Jan 7, 2023 · 1 comment
Open

Adding a function to calculating Spearman correlation #143

BinglinW opened this issue Jan 7, 2023 · 1 comment

Comments

@BinglinW
Copy link

BinglinW commented Jan 7, 2023

Hello, I am currently using this toolbox. Because of the data requirements of the Pearson correlation, I wanted to add the ability to calculate the Spearman correlation. After reading the source code, I couldn't find a function to compute Pearson's correlation. Could you give me some guidance?

@jeremymanning
Copy link
Member

I'm not sure what you mean by "data requirement" of the Pearson's correlation. But since Spearman's correlations are just Pearson's correlations on the ranks, the "inputs" to both correlations are identical.

Another potential point of misunderstanding is that timecorr computes time varying correlations, not just a single static correlation. In any case, the core correlation computation is done here.

Feel free to clarify or reach out again if I've misinterpreted your questions, or if you have additional questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants