Author
Thornton, Laura |
Submitted to: Proceedings of SAS Users Group
Publication Type: Abstract Only Publication Acceptance Date: 8/1/2005 Publication Date: 9/11/2005 Citation: Thornton, L.L. 2005. Simple methods to pull the diagonal out of a correlation matrix [abstract]. Proceedings of 18th Annual Northeast SAS Users Group Conference, September 11-14, 2005, Portland, Maine. p. 42. Interpretive Summary: Technical Abstract: When using large data sets with many variables, it is often necessary to find how the variables correlate to one another. However, many times, the cross-correlations among all the variables are not as important as the diagonal of a correlation matrix where both the var and with clauses are invoked. A simple and effective use of macro variable references can be employed to display only the diagonal using the noprint option for the PROC CORR and a single dataset step. While the simple statistics are not printed prior to the diagonal of the matrix, they can be obtained using a PROC MEANS prior to the invocation to the correlation procedure. The step can also be altered to obtain any of the off-diagonals should they be of interest singly as well. The methodology for extraction of singular pieces from the matrix and various adaptations are presented in the following paper. |