procrustes             package:MCMCpack             R Documentation

_P_r_o_c_r_u_s_t_e_s _T_r_a_n_s_f_o_r_m_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

       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.

_D_e_t_a_i_l_s:

     'R', 'tt', and 's' are chosen so that


                  s X R + 1 tt' approximately Xstar

     .

     'X.new' is given by:


                        X.new = s X R + 1 tt'

     .

_V_a_l_u_e:

     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.

_R_e_f_e_r_e_n_c_e_s:

     Borg and Groenen. 1997. _Modern Multidimensional Scaling_. New
     York: Springer. pp. 340-342.

_S_e_e _A_l_s_o:

     'MCMCirtKd'

