Learn R Programming

balance (version 0.2.4)

sbp.fromADBA: Build SBP Matrix of "Anti-Principal Discriminant Balances"

Description

This function builds an SBP of "discriminant balances" by clustering a matrix of the pair-wise total within-group variance, adjusted by the pair-wise total variance. The method is intended to make the smallest balances most discriminative.

Usage

sbp.fromADBA(x, group, ...)

Arguments

x

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

group

A character vector. Group or sub-group membership. Argument passed to propr::propd.

...

Other arguments passed to propr::propd.

Value

An SBP matrix.

Examples

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

Run the code above in your browser using DataLab