randomizeR (version 3.0.2)

hatMatrix: Calculate hat matrix

Description

Calculate hat matrix

Usage

hatMatrix(M)

Value

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

Arguments

M

Design Matrix representing the randomization sequence