Learn R Programming

MCMCglmm (version 1.06)

krzanowski.test: Krzanowski's Comparison of Subspaces

Description

Calculates statistics of Krzanowski's comparison of subspaces.

Usage

krzanowski.test(CA, CB, vecsA, vecsB, corr = FALSE, ...)

Arguments

CA
Matrix A
CB
Matrix B
vecsA
Vector of integers indexing the eigenvectors determining the subspace of A
vecsB
Vector of integers indexing the eigenvectors determining the subspace of B
corr
logical; if TRUE the variances of A and B are standardised
...
further arguments to be passed

Value

  • sumofSmetric for overall similarity with 0 indicting no similarity and a value of length(vecsA) for identical subspaces
  • anglesangle in degrees between each best matched pair of vectors
  • bisectorvector that lies between each best matched pair of vectors

References

Krzanowski, W.J. (2000) Principles of Multivariate Analysis. OUP

Examples

Run this code
CA<-rIW(10, diag(5), n=1)
CB<-rIW(10, diag(5), n=1)
krzanowski.test(CA, CB, vecsA=1:2, vecsB=1:2)
krzanowski.test(CA, CA, vecsA=1:2, vecsB=1:2)

Run the code above in your browser using DataLab