sbp.fromPDBA: Build SBP Matrix of "Principal Discriminant Balances"

Description Usage Arguments Value Author(s) Examples

View source: R/sbp.R

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 (inverted by subtracting this value from 1). The method is intended to make the largest balances most discriminative.

Usage

1

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.

Author(s)

Thom Quinn

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(balance)
data(iris)
x <- iris[1:100,1:4]
y <- iris[1:100,5]
sbp.fromPDBA(x, y)

## End(Not run)

balance documentation built on July 10, 2019, 9:03 a.m.