cen: centring of a data matrix

Description Usage Arguments Value Author(s) Examples

Description

centres the columns of a matrix to mean zero.

Usage

1
cen(X,w=rep(1,nrow(X))/nrow(X))

Arguments

X

a raw data matrix.

w

a vector of case weights.

Value

returns a matrix

Author(s)

Jan Graffelman (jan.graffelman@upc.edu)

Examples

1
2
3
X<-matrix(runif(10),ncol=2)
Y<-cen(X)
print(Y)

ToolsForCoDa documentation built on Sept. 20, 2021, 5:19 p.m.