Description Usage Arguments Value Author(s) Examples
Projects the (centred) columns of a matrix onto a (centered) vector and returns the slope-coefficient for each column.
1 | projectonto(A, b)
|
A |
A centered matrix whose columns will be projected onto |
b |
this centered vector |
A vector of slope coefficients.
Solve Sæbø
1 2 3 4 5 | data(BCdata)
Y <- BCdata$Y
X <- BCdata$X
#Project the columns of X onto Y.
tt <- projectonto(X,Y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.