Proc Corr
Correlation can be defined as the linear relationship between multiple variables. Positive, negative, and no correlation are the three scenarios that can exist. The values range from -1 to 1. A positive correlation is observed when the value of one variable increases with the increase of another variable, whereas in negative correlation, with an increase in the value of one variable, the value of another variable decreases.
Correlation is often run as a precursor to evaluating the role of variables in models such as regression. In the following instance, we have multiple variables in the Var statement that are being assessed as predictors for the Stock variable. The Date variable is an ID variable and is not being assessed:
Proc ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access