orthprocr: Orthogonal Procrustes Analysis

Description Usage Arguments Value References

View source: R/orthprocr.R

Description

Simple function to rotate matrix X so that it matches the target matrix Z as closely as possible, by minimizing ||Z - XQ|| where Z and X are of the same size and Q is an orthogonal matrix. The algorithm is based on the singular value decomposition (SVD) (see e.g. the reference).

Usage

1
orthprocr(Z, X)

Arguments

Z

The target matrix

X

The matrix to be rotated, which must be of the same size as Z.

Value

A list with the following 2 elements:

Q

The rotation matrix

XQ

The matrix X after rotation

References

Gower, J. C. and Hand, D.J. (1996). Biplots (Vol. 54). CRC Press.


cds documentation built on May 2, 2019, 5:54 a.m.