fsBalance: Convert Features into Balances

Description Usage Arguments Value

View source: R/5.1-fs.R

Description

fsBalance converts features into balances. The balance rule is saved and deployed automatically by the predict method during test set validation.

Usage

1
2
fsBalance(object, top = 0, sbp.how = "sbp.fromPBA", ternary = FALSE,
  ratios = FALSE, ...)

Arguments

object

An ExprsArray object to undergo feature selection.

top

A numeric scalar or character vector. A numeric scalar indicates the number of top features that should undergo feature selection. A character vector indicates specifically which features by name should undergo feature selection. Set top = 0 to include all features. A numeric vector can also be used to indicate specific features by location, similar to a character vector.

sbp.how

A character string. The method used to build the serial binary partition matrix of balances. Any balance::sbp.from* function will work.

ternary

A boolean. Toggles whether to return balances representing three components. Argument passed to balance::sbp.subset. Set ternary = FALSE and ratios = FALSE to skip subset.

ratios

A boolean. Toggles whether to return balances representing two components. Argument passed to balance::sbp.subset. Set ternary = FALSE and ratios = FALSE to skip subset.

...

Arguments passed to the detailed function.

Value

Returns an ExprsArray object.


tpq/exprso documentation built on July 27, 2019, 8:44 a.m.