R: Krzanowski's Comparison of Subspaces

krzanowski.test {MCMCglmm} | R Documentation

## 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

`sumofS` | metric for overall similarity with 0 indicting no similarity and a value of `length(vecsA)` for identical subspaces
`angles` | angle in degrees between each best matched pair of vectors
`bisector` | vector that lies between each best matched pair of vectors

### Author(s)

Jarrod Hadfield j.hadfield@ed.ac.uk

### References

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

### Examples

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

[Package MCMCglmm version 2.32 Index]