randomizeR (version 1.4.2)

hatMatrix: Calculate hat matrix

Description

Calculate hat matrix

Usage

hatMatrix(M)

Arguments

M

Design Matrix representing the randomization sequence

Value

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