help corrsqm

Title

corrsqm -- Calculate the correlation between the lower triangle of two symmetric matrices

Syntax

corrsqm var1 var2 [if] [in] [,NODiag]

Description

corrsqm takes two symmetric matrices of the same dimension
(e.g., distance matrices) and returns their correlation. More
specifically, it returns the correlation between their lower triangles,
including the diagonal by default. It fails if one or both matrix is not symmetric,
or if the matrices are not the same size. It prints the correlation but
also returns it in r(rho).

The option nodiag suppresses the diagonal, so that the
correlation is between the lower triangles excluding the main
diagonal.

Author

Brendan Halpin, brendan.halpin@ul.ie

Examples

. corrsqm dist1 dist2