BCR | R Documentation |
Identifies the number of common eigenvectors in several groups using the bootstrap confidence regions (BCR) method.
BCR(origdata, reps = 1000)
origdata |
List of the sample data sets. |
reps |
Number of bootstrap replications to use. |
Calculates 95% bootstrap confidence regions for eigenvector pairs; if the regions overlap, the eigenvectors are considered to be common.
Returns a data frame with the columns:
Common eigenvector |
Order of the eigenvectors in the model matrix. |
common.ind |
Indicator of eigenvector commonness (1 = common eigenvector). |
Note that this implementation of the BCR method can currently handle only two groups of data.
Theo Pepler
Pepler, P.T. (2014). The identification and application of common principal components. PhD dissertation in the Department of Statistics and Actuarial Science, Stellenbosch University.
ensemble.test
# Determine number of common eigenvectors in the covariance matrices of the # versicolor and virginica groups data(iris) versicolor <- iris[51:100, 1:4] virginica <- iris[101:150, 1:4] BCR(origdata = list(versicolor, virginica))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.