hat_matrix: Hat matrix

View source: R/hat_matrix.R

hat_matrixR Documentation

Hat matrix

Description

Get the hat matrix from a design matrix.

Usage

hat_matrix(design)

Arguments

design

The T by Q design matrix

Details

Uses the QR decomposition.

Value

The T by T hat matrix

Examples

hat_matrix(cbind(seq(100), 1))

fMRItools documentation built on April 12, 2025, 1:32 a.m.