new_design_matrix: New design matrix

View source: R/new_design_matrix.R

new_design_matrixR Documentation

New design matrix

Description

Create new design matrix X_{ij}^* = X_j - X_i for PIM.

Usage

new_design_matrix(X)

Arguments

X

matrix original design matrix

Value

Assuming n = NROW(X), p = NCOL(X), the returned object is also an matrix but with dimension n^2 x p.

Examples

X <- matrix(c(4, 9, 2, 3, 5, 7, 8, 1, 6), ncol = 3, byrow = TRUE)
new_design_matrix(X)

ge-li/upim documentation built on Oct. 30, 2022, 3:36 a.m.