orthogonalVectors {EMSC} | R Documentation |
Orthogonal vectors
Description
Create orthogonal set of vectors that resemble the original input vectors.
Usage
orthogonalVectors(X, dim = 1, re = TRUE)
Arguments
X |
a |
dim |
an integer specifying which dimension is the object dimension. |
re |
a logical indicating if vectors should be norm-scaled before orthogonalization and rescaled afterwards (default = TRUE). |
Details
The input vectors are orthgonalized using singular value decomposition. To make the resulting vectors similar to the input vectors (not just any base for the same space) they are re-oriented towards the original vectors using Procrustes rotations.
To force the procedure to handle vectors of unequal magnitudes similarilly
they are by default rescaled to norm vectors before orthogonalization and
rescaled afterwards. This can be overridden using the re
paramter.