Home   >   User Resources   >   Online Help   >   apaMatrix.Centering
 

 

Function index Version 3.0.0

apaMatrix.Centering(Size)

Excel=apaMatrix.Centering(Size)

Result

Creates the n x n centering matrix H = I − (1/n)*1*1', with n = Size.

Syntax

Size: size n of the centering matrix

Algorithm

The elements are calculated as H(i,j) = δ(i,j) − 1/n, with δ(i,j) = 1 for i = j and 0 otherwise.

Remarks

Multiplying a data matrix X with H from the left, i.e. H*X, subtracts the column means from all observations.