largest.kappas: Calculate condition indices for subcompositions

Description Usage Arguments Details Value Author(s) Examples

View source: R/largest.kappas.R

Description

Function largest.kappas calculates the condition numbers for all subcompositions of a given size, for a particular compositional data set.

Usage

1
largest.kappas(Xcom, nparts = 3, sizetoplist = 10)

Arguments

Xcom

A data matrix with compositions in rows

nparts

The number of parts for the subcompositions to be analysed.

sizetoplist

The length of the list of the "best" subcompositions

Details

Log-ratio PCA is executed for each subcompostion, and the resulting eigenvalues and eigenvectors are stored.

Value

A data frame with an ordered list of subcompositions

Author(s)

Jan Graffelman (jan.graffelman@upc.edu)

Examples

1
2
3
X <- matrix(runif(600),ncol=6)
Xcom <- X/rowSums(X)
Results <- largest.kappas(Xcom)

ToolsForCoDa documentation built on Sept. 20, 2021, 5:19 p.m.