View source: R/new_design_matrix.R
new_design_matrix | R Documentation |
Create new design matrix X_{ij}^* = X_j - X_i for PIM.
new_design_matrix(X)
X |
matrix original design matrix |
Assuming n = NROW(X)
, p = NCOL(X)
,
the returned object is also an matrix but with dimension n^2 x p.
X <- matrix(c(4, 9, 2, 3, 5, 7, 8, 1, 6), ncol = 3, byrow = TRUE) new_design_matrix(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.