Description Usage Arguments Value
This function ensures that PC1 is always positive. Sometimes, the rotation matrix form PCA returns a set of eigen vectors where PC1 is mostly negative signs. That's usually undesirable for most financial applications. This function just flips things around so they are more sensible from a finance perspective.
1 | pcaFlip(x)
|
x |
a matrix of eigen vectors. |
a matrix containing flipped eigen vectors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.