Please let me know how do we check whether my data is Linear (to apply Pearson or Spearman) or Non-Linear (to apply Hoeffding).
Scatterplots are often helpful in conjunction with Proc Corr , which is why there is a Plots=scatter option on the proc statement.
If the plot shows a linear or other shaped trend that you can see then you have your answer.
Spearman correlation does apply for monotonic, or mostly so, non-linear associations as it it based on direction of change of values and not magnitude of change.
There is another better statistic to test correlation . @Rick_SAS wrote a blog about it .
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.