Tests whether the observed correlation structure between X and Y factor spaces is significantly stronger than would be expected under random orthogonal rotations.
rotation_null_test(
scores_X,
scores_Y,
lag = 1,
B = 1000,
seed = 123,
compute = c("procrustes", "cca", "principal", "dynbeta"),
progress = TRUE,
rotate = "Y"
)List with components:
observedObserved correlation statistics.
null_distributionMatrix of statistics under null rotations.
p_valuesOne-sided p-values for each statistic.
significantLogical indicating significance at alpha = 0.05.
Factor scores from first dataset
Factor scores from second dataset
Number of lags for the model (default: 1)
Number of bootstrap iterations (default: 1000)
Random seed for reproducibility (default: 123)
Vector of methods to compute: 'procrustes', 'cca', 'principal', 'dynbeta'
Logical, show progress bar (default: TRUE)
Which dataset to rotate: 'X' or 'Y' (default: 'Y')
(contemporaneous). "spearman", or "kendall".