Hello, The following example [along with the actual data] provided in SAS shows how to test for differences in correlation matrices across independent samples using the CONTRAST statement: http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_sect021.htm The actual code to test for differences in correlation matrices between independent samples ("species") is as follows: proc glimmix data=iris_univ; class species var id; model response = species*var; random _residual_ / type=unr group=species subject=id; covtest 'Equal Covariance Matrices' homogeneity; covtest 'Equal Correlation Matrices' general 0 0 0 0 1 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0, 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0, 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 -1 0 0 0 0, 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0, 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 -1 0 0 0, 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0, 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 -1 0 0, 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0, 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 -1 0, 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0, 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 -1, 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 / estimates; run; I would like to adjust this code such that the correlation matrices are being compared between DEPENDENT samples (e.g., same sample measured twice). Any help would be MUCH appreciated. Thanks, Ryan p.s. I've asked this same question on SAS-L. Apologies to those who read/respond to questions on SAS-L and here.
... View more