BookmarkSubscribeRSS Feed
Sanchit_goyal
Calcite | Level 5

Please let me know how do we check whether my data is Linear (to apply Pearson or Spearman) or Non-Linear (to apply Hoeffding).

2 REPLIES 2
ballardw
Super User

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.

Ksharp
Super User

There is another better statistic to test correlation . @Rick_SAS  wrote a blog about it .

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 611 views
  • 0 likes
  • 3 in conversation