pcaFlip: Flip the signs on eigen vectors so that PC1 is positive.

Description Usage Arguments Value

View source: R/pcaFlip.R

Description

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.

Usage

1

Arguments

x

a matrix of eigen vectors.

Value

a matrix containing flipped eigen vectors.


gtog/dMisc documentation built on May 17, 2019, 8:57 a.m.