Learn R Programming

balance (version 0.2.4)

sbp.fromPBA: Build SBP Matrix of Principal Balances

Description

This function builds an SBP of principal balances using the hierarchical clustering of components method described by Pawlowsky-Glahn et al. in "Principal balances" from the CoDaWork 2011 proceedings.

Usage

sbp.fromPBA(x, alpha = NA)

Arguments

x

A matrix with rows as samples (N) and columns as components (D).

alpha

A double. Defines a hyper-parameter used by the Box-Cox transformation to approximate log-ratio variance in the presence of zeros. Skip with NA.

Value

An SBP matrix.

Examples

Run this code
# NOT RUN {
library(balance)
data(iris)
x <- iris[,1:4]
sbp.fromPBA(x)

# }

Run the code above in your browser using DataLab