projectonto: Internal function for projections

Description Usage Arguments Value Author(s) Examples

Description

Projects the (centred) columns of a matrix onto a (centered) vector and returns the slope-coefficient for each column.

Usage

1

Arguments

A

A centered matrix whose columns will be projected onto

b

this centered vector

Value

A vector of slope coefficients.

Author(s)

Solve Sæbø

Examples

1
2
3
4
5
data(BCdata)
Y <- BCdata$Y
X <- BCdata$X
#Project the columns of X onto Y.
tt <- projectonto(X,Y)

therimalaya/lplsReg documentation built on May 14, 2019, 8:36 a.m.