Learn R Programming

sSDR (version 1.2.0)

standmat: Matrix standardization

Description

Matrix standardization

Usage

standmat(x)

Arguments

x
A n x p matrix of n observations and p predictors.

Value

A n x p matrix of n observations and p predictors.

Details

This function standardizes a matrix treating each row as a random vector in an iid sample. It returns a n x p matrix with column-mean zero and identity-covariance matrix.

Examples

Run this code
data <- gen.data(n=100)
x.std <- standmat(data$X)

Run the code above in your browser using DataLab