Learn R Programming

smallstuff (version 1.0.3)

projMatrix: Create the Projection Matrix of a Matrix

Description

Calculates the projection matrix for a full-rank matrix X with its number of rows greater than or equal to its number of columns

Usage

projMatrix(X)

Value

Projection matrix of X.

Arguments

X

nxp Matrix; must be full-rank and have n >= p

Examples

Run this code
projMatrix(matrix(c(3,4,-1,2,1,1),3))

Run the code above in your browser using DataLab