compLoad {multiUS} | R Documentation |
Compare factor loadings
Description
The function compares two sets of factor loadings by considering different possible orders of factors and different possible signs of factor loadings.
Usage
compLoad(L1, L2)
Arguments
L1 |
First set of factor loadings in a matrix form (variables are organized in rows and factors are organized in columns). |
L2 |
Second set of factor loadings in a matrix form (variables are organized in rows and factors are organized in columns). |
Value
A list with the following elements:
-
err
- Sum of squared differences between the values ofL1
andL2
(for the corresponding permuation and signs). -
perm
- Permutation of columns ofL1
that results in the lowesterr
value. -
sign
- Signs of factor loadings ofL1
. The first value corresponds to the first column ofL1
and the second value corresponds to the second column ofL1
.
Author(s)
Aleš Žiberna and Friedrich Leisch (permutations)
Examples
L1 <- cbind(c(0.72, 0.81, 0.92, 0.31, 0.22, 0.15), c(0.11, 0.09, 0.17, 0.77, 0.66, 0.89))
L2 <- cbind(c(-0.13, -0.08, -0.20, -0.78, -0.69, -0.88), c(0.72, 0.82, 0.90, 0.29, 0.20, 0.17))
compLoad(L1, L2)