powered by
Produces a simultaneous orthomax rotation of two matrices (using one rotation matrix).
orthmax2(A1, A2, gam1, gam2, conv)
A list including the following components:
Rotated version of A1
A1
Rotated version of A2
A2
Rotation matrix
Orthomax function value
First matrix to be rotated with the same number of columns of A2
Second matrix to be rotated with the same number of columns of A1
orthmax parameter for A1
orthmax parameter for A2
Optional convergence value (default 1e-6)
Maria Antonietta Del Ferraro mariaantonietta.delferraro@yahoo.it Henk A.L. Kiers h.a.l.kiers@rug.nl Paolo Giordani paolo.giordani@uniroma1.it
R. Jennrich (1970). Orthogonal rotation algorithms. Psychometrika 35:229--235.
varim
X <- matrix(rnorm(8*3),ncol=3) Y <- matrix(rnorm(6*3),ncol=3) orthXY <- orthmax2(X,Y,1,2) # rotated version of X orthXY$B1 # rotated version of Y orthXY$B2 # rotation matrix orthXY$T
Run the code above in your browser using DataLab