View source: R/construct_confidence_set.R
get.difference.matrix | R Documentation |
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.
get.difference.matrix(data, r)
data |
A |
r |
An integer between 1 and |
A n
by (p-1)
matrix where each row is the difference between the r
-th column and the remaining columns.
set.seed(1)
data <- matrix(rnorm(50), nrow = 10)
diff.mat <- get.difference.matrix(data, r = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.