Description Usage Arguments Examples
produces an orthogonal projection matrix i.e. X (X' X)-1 X'
1 | projector(x, inverse = "solve")
|
x |
numeric matrix |
inverse |
type of inverse. Options: |
1 2 3 4 5 6 7 8 9 | # a matrix
set.seed(5)
M = matrix(runif(15), 5, 3)
# projector
projector(M)
# synonym function
hat_matrix(M)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.