get.difference.matrix {argminCS} | R Documentation |
Construct a difference matrix for argmin hypothesis testing
Description
Given a data matrix and a reference column index, construct the difference matrix used in hypothesis testing procedures. Each column represents the difference between the reference dimension and one of the remaining dimensions.
Usage
get.difference.matrix(data, r)
Arguments
data |
A |
r |
An integer between 1 and |
Value
A n
by (p-1)
matrix where each row is the difference between the r
-th column and the remaining columns.
Examples
set.seed(1)
data <- matrix(rnorm(50), nrow = 10)
diff.mat <- get.difference.matrix(data, r = 2)
[Package argminCS version 1.1.0 Index]