hatMatrix function

Calculate hat matrix

Calculate hat matrix

hatMatrix(M)

Arguments

  • M: Design Matrix representing the randomization sequence

Returns

Hat matrix, i.e. M * (M^T M)^{-1} M^T

  • Maintainer: Ralf-Dieter Hilgers
  • License: GPL (>= 3)
  • Last published: 2023-09-18

Useful links