projector: Orthogonal projector of a matrix

Description Usage Arguments Value Author(s) References Examples

View source: R/projector.R

Description

Computes the orthogonal projection matrix for the column space of a given matrix.

Usage

1
projector(M, tol=sqrt(.Machine$double.eps))

Arguments

M

A matrix for which the orthogonal projection matrix is to be computed.

tol

A relative tolerance to detect zero singular values while computing generalized inverse, in case M is rank deficient (default = sqrt(.Machine$double.eps)).

Value

Returns the orthogonal projection matrix for the column space of M.

Author(s)

Debasis Sengupta <shairiksengupta@gmail.com>, Jinwen Qiu <qjwsnow_ctw@hotmail.com>

References

Sengupta and Jammalamadaka (2019), Linear Models and Regression with R: An Integrated Approach.

Examples

1
projector(matrix(3,3,3))

lmreg documentation built on May 2, 2019, 9:29 a.m.

Related to projector in lmreg...