50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

tinyVAST (version 1.0.1)

rotate_pca: Rotate factors to match Principal-Components Analysis

Description

Rotate lower-triangle loadings matrix to order factors from largest to smallest variance.

Usage

rotate_pca(
  L_tf,
  x_sf = matrix(0, nrow = 0, ncol = ncol(L_tf)),
  order = c("none", "increasing", "decreasing")
)

Value

List containing the rotated loadings L_tf, the inverse-rotated response matrix x_sf, and the rotation H

Arguments

L_tf

Loadings matrix with dimension \(T \times F\).

x_sf

Spatial response with dimensions \(S \times F\).

order

Options for resolving label-switching via reflecting each factor to achieve a given order across dimension \(T\).