partition: Partition a component matrix

Description Usage Arguments Details Value Examples

Description

Given a numeric matrix, returns a matrix with the same dimensions, row and column names but with only 1, 0, and -1 as values. These values indicate the partitioning of each column of the matrix into positive, neither, and negative subsets.

Usage

1
partition(x, method = c("fixed", "ann"), ...)

Arguments

x

A numeric matrix

method

Specifies method to use for determining partitioning threshold values

...

Optional arguments to partition method

Details

The ("fixed") method uses a fixed value (specified by an additional parameter, t, which has a default value of 2.8) to create partitions, while the ("ann") method uses an artificial neural network model to create custom partition thresholds for each component.

Value

A matrix comprising values of 1, 0, and -1 to indicate column-wise partitioning of the input matrix into positive, neither, and negative sets, respectively.

Examples

1
2
x = matrix(rnorm(9), 3, 3)
partition(x, method = "fixed", t = 0.5)

MPCary/DEXICA documentation built on May 4, 2019, 2:35 p.m.