powered by
Function largest.kappas calculates the condition numbers for all subcompositions of a given size, for a particular compositional data set.
largest.kappas
largest.kappas(Xcom, nparts = 3, sizetoplist = 10)
A data frame with an ordered list of subcompositions
A data matrix with compositions in rows
The number of parts for the subcompositions to be analysed.
The length of the list of the "best" subcompositions
Jan Graffelman (jan.graffelman@upc.edu)
Log-ratio PCA is executed for each subcompostion, and the resulting eigenvalues and eigenvectors are stored.
X <- matrix(runif(600),ncol=6) Xcom <- X/rowSums(X) Results <- largest.kappas(Xcom)
Run the code above in your browser using DataLab