| Library: | graphic |
| See also: | groupcol |
| Quantlet: | transform | |
| Description: | Transforms the given dataset. |
| Usage: | y = transform (x, prep) | |
| Input: | ||
| x | n x p matrix | |
| prep | scalar | |
| Output: | ||
| y | n x p matrix | |
; loads the library graphic
library ("graphic")
; generates a matrix (100x5) with uniform random numbers
x = uniform(100, 5)
; computes the principal components of x
y = transform(x, grc.prep.pcacov)
y
returns the principal components of x based on the covariance matrix
| Library: | graphic |
| See also: | groupcol |