variance_explained_perPC: Variance explained per PC
Description
Computes the variance explained by each PC.
Usage
variance_explained_perPC(C, U)
Arguments
- C
A matrix. The correlation or covariance matrix (p x p).
- U
A matrix. The matrix containing the r PCs (p x r).