apaCorrels.Block.Set(Correls, BlockStructure, BlockIndex, IntraEquiCorrel, InterEquiCorrel, IntraShrinkage, InterShrinkage)
=apaCorrels.Block.Set(Correls, BlockStructure, BlockIndex, IntraEquiCorrel, InterEquiCorrel, IntraShrinkage, InterShrinkage)Result
Sets (shrinks) the correlations within one block of a correlation matrix and its correlations with the other elements towards target values.
Syntax
Correls: n x n correlation matrix
BlockStructure: 1 x k vector containing the number of elements per block
BlockIndex: index of the block to be set
IntraEquiCorrel: target equicorrelation coefficient within the block, between -1 and 1. If set to 2, the average intra-block correlation is targeted. If set to 3, the smallest correlation of a valid equicorrelation matrix, -1/(N-1), is targeted
InterEquiCorrel: target equicorrelation coefficient of the block with the other elements, between -1 and 1. If set to 2, the average inter-block correlation is targeted
IntraShrinkage: intra-block shrinkage parameter between 0 and 1
InterShrinkage: inter-block shrinkage parameter between 0 and 1
Remarks
The result is not necessarily a valid correlation matrix.
