Skip to contents

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).

Value

A numeric vector of length ncol(U).