Description Usage Arguments Details Value Examples
View source: R/decompbaseorthofunction.R
Orthonormalization of an input matrix with the Gram-Schmidt algorithm.
1 |
data |
Input matrix of dimension n * p; each column is a variable. |
Performs an orthonormalization of the input matrix, recording the columns that are linear combination of the previous ones.
U |
The orthonormal basis obtained from |
nonind |
Set of variables with no contribution. |
trueind |
Set of variables with contribution. |
rank |
Rank of the input matrix, calculated with the function |
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
x1=rnorm(100)
x2=rnorm(100)
x3=cbind(x1,x2,x1+x2)
dec=decompbaseortho(x3)
dec$nonind
dec$trueind
dec$rank
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.