gsorth | R Documentation |
Calculates a matrix with uncorrelated columns using the Gram-Schmidt process
gsorth(y, order, recenter = TRUE, rescale = TRUE, adjnames = TRUE)
y |
a numeric matrix or data frame |
order |
if specified, a permutation of the column indices of |
recenter |
logical; if |
rescale |
logical; if |
adjnames |
logical; if |
This function, originally from the heplots package has now been deprecated in matlib. Use
GramSchmidt
instead.
a matrix/data frame with uncorrelated columns
## Not run:
set.seed(1234)
A <- matrix(c(1:60 + rnorm(60)), 20, 3)
cor(A)
G <- gsorth(A)
zapsmall(cor(G))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.