rotate_factors: Rotate results

View source: R/rotate_factors.R

rotate_factorsR Documentation

Rotate results

Description

rotate_factors rotates results from a factor model

Usage

rotate_factors(
  L_pj = NULL,
  Psi_sjt = NULL,
  Cov_pp = NULL,
  Psi_spt = NULL,
  RotationMethod = "PCA",
  testcutoff = 1e-10,
  quiet = FALSE,
  ...
)

Arguments

L_pj

Loadings matrix for 'p' categories and 'j' factors (calculated from Cov_pp if it is provided)

Psi_sjt

Array of factors (1st dimension: spatial knots; 2nd dimension: factors; 3rd dimension: time)

Cov_pp

Covariance calculated from loadings matrix. if Cov_pp is provided and L_pj=NULL, then L_pj is calculated from Cov_pp

Psi_spt

Array of projected factors (1st dimension: spatial knots; 2nd dimension: categories; 3rd dimension: time) if Psi_spt is provided and Psi_sjt=NULL, then Psi_sjt is calculated from Psi_spt and L_pj

RotationMethod

Method used for rotation when visualing factor decomposition results, Options: "PCA" (recommended) or "Varimax"

testcutoff

tolerance for numerical rounding when confirming that rotation doesn't effect results

Value

tagged list of outputs

L_pj_rot

Loadings matrix after rotation

Psi_rot

Factors after rotation

Hinv

Object used for rotation

L_pj

Loadings matrix


James-Thorson/FishStatsUtils documentation built on Feb. 6, 2024, 4:26 a.m.