Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

procrustes

Procrustes Transformation


Description

This function performs a Procrustes transformation on a matrix X to minimize the squared distance between X and another matrix Xstar.

Usage

procrustes(X, Xstar, translation = FALSE, dilation = FALSE)

Arguments

X

The matrix to be transformed.

Xstar

The target matrix.

translation

logical value indicating whether X should be translated.

dilation

logical value indicating whether X should be dilated.

Details

R, tt, and s are chosen so that:

s X R + 1 tt' \approx X^*

X.new is given by:

X_{new} = s X R + 1 tt'

Value

A list containing: X.new the matrix that is the Procrustes transformed version of X, R the rotation matrix, tt the translation vector, and s the scale factor.

References

Borg and Groenen. 1997. Modern Multidimensional Scaling. New York: Springer. pp. 340-342.

See Also


MCMCpack

Markov Chain Monte Carlo (MCMC) Package

v1.5-0
GPL-3
Authors
Andrew D. Martin [aut], Kevin M. Quinn [aut], Jong Hee Park [aut,cre], Ghislain Vieilledent [ctb], Michael Malecki[ctb], Matthew Blackwell [ctb], Keith Poole [ctb], Craig Reed [ctb], Ben Goodrich [ctb], Ross Ihaka [cph], The R Development Core Team [cph], The R Foundation [cph], Pierre L'Ecuyer [cph], Makoto Matsumoto [cph], Takuji Nishimura [cph]
Initial release
2021-01-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.