powered by
centres the columns of a matrix to mean zero.
cen(X,w=rep(1,nrow(X))/nrow(X))
returns a matrix
a raw data matrix.
a vector of case weights.
Jan Graffelman (jan.graffelman@upc.edu)
X<-matrix(runif(10),ncol=2) Y<-cen(X) print(Y)
Run the code above in your browser using DataLab