Home   >   User Resources   >   Online Help   >   apaCorrels.Swap
 

 

Function index Version 3.0.0

apaCorrels.Swap(Correls, ElementIndex1, ElementIndex2)

Excel=apaCorrels.Swap(Correls, ElementIndex1, ElementIndex2)

Result

Swaps two constituents in a correlation matrix, i.e. exchanges the corresponding rows and columns.

Syntax

Correls: n x n correlation matrix

ElementIndex1: 1-based index of the first constituent to exchange

ElementIndex2: 1-based index of the second constituent to exchange

Remarks

The function is volatile.