Hello everyone,
Is there a way to get the p-value for the spearman correlation coefficient inside PROC IML. I know I can get it using PROC CORR but I want to avoid using that.
Thanks,
Manoj
The way to compute the p-value is explained at Wikipedia. You'd have to program this in IML.
Yes I did that exactly and it was quite easy.
@themanoj20080 wrote:
Yes I did that exactly and it was quite easy.
Then please post the answer for future users and mark this question as closed.
There's a function call CORR for IML, with a method for spearman included.
@themanoj20080 wrote:
Hello everyone,
Is there a way to get the p-value for the spearman correlation coefficient inside PROC IML. I know I can get it using PROC CORR but I want to avoid using that.
Thanks,
Manoj
Sorry, you will need to calculate that from the formula and using the probability formulas as indicated via @PaigeMiller
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.