powered by
affine.trans(X, A = diag(1, dim(X)[2]), b = rep(0, dim(X)[2]), A.sqrt = FALSE, na.action = na.fail)
TRUE
data(iris) IRIS <- iris[,1:4] colMeans(IRIS) cov(IRIS) IRIS.trans <- affine.trans(IRIS, solve(cov(IRIS)), colMeans(IRIS),TRUE) colMeans(IRIS.trans) cov(IRIS.trans)
Run the code above in your browser using DataLab