Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

vvtz

Projectin operator


Description

This function computes the projection operator

P_V z= V V^\top z

Usage

vvtz(v, z)

Arguments

v

orthonormal basis of the space on which z is projected. v is either a matrix or a vector.

z

vector that is projected onto the columns of v

Details

The above formula is only valid if the columns of v are normalized and mutually orthogonal.

Value

value of the projection operator

Author(s)

Nicole Kraemer

See Also

Examples

# generate random orthogonal vectors
X<-matrix(rnorm(10*100),ncol=10) 	# random data
S<-cor(X) 				# correlation matrix of data
v<-eigen(S)$vectors[,1:3]		# first three eigenvectors of correlation matrix
z<-rnorm(10)				# random vector z
projection.z<-vvtz(v,z)

plsdof

Degrees of Freedom and Statistical Inference for Partial Least Squares Regression

v0.3-0
GPL (>= 2)
Authors
Nicole Kraemer, Mikio L. Braun
Initial release
2021-03-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.