A SAS data scientist analyzes a CAS dataset using the correlation action. The following code is submitted: proc cas; simple.correlation / table={name='CUSTOMERS', caslib='PUBLIC'} inputs={'age','income','spend'} / casout={name='corr_out', caslib='WORK'}; quit; What is the output stored in 'corr_out'?
Select an answer to reveal the explanation.
Short Explanation
Here's the deal — you get the pairwise Pearson correlation matrix for age, income, and spend because simple.correlation computes pairwise Pearson correlation coefficients among the specified inputs and stores that matrix in corr_out.
Full Explanation
The correct output is the pairwise Pearson correlation matrix for age, income, and spend because simple.correlation computes pairwise Pearson correlation coefficients among the specified inputs and stores the correlation matrix in corr_out. Principal components of the three variables require the pca or factor action sets. Cluster assignments based on correlation distance require the kclus or hpclus action sets. Regression coefficients when regressing spend on age and income require the regression action set.