Learn R Programming

balance (version 0.2.4)

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

Description

A wrapper for sbp.fromADBA. See also sbp.fromPDBA.

Usage

sbp.fromPropd(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.fromPropd(x, y)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab