Learn R Programming

SplitKnockoff (version 2.1)

normc: default normalization function for matrix

Description

normalize columns of a matrix.

Usage

normc(X)

Value

Y: the output matrix

Arguments

X

the input martix

Examples

Run this code
library(mvtnorm)
n = 350
p = 100
Sigma = matrix(0, p, p)
X <- rmvnorm(n,matrix(0, p, 1), Sigma)
X <- normc(X)

Run the code above in your browser using DataLab