hat_matrix {fMRItools}R 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))

[Package fMRItools version 0.4.7 Index]