components {ICtest} | R Documentation |
Generic Components Extraction Function
Description
Function to extract components from an object. If the object is of class ictest or ladle the user can choose if all components are extracted or only those which were interesting under the null hypothesis.
Usage
components(x, ...)
## S3 method for class 'ictest'
components(x, which = "all", ...)
## S3 method for class 'ladle'
components(x, which = "all", ...)
Arguments
x |
an object which has a components method, like for example an ictest object. |
which |
for an object of class ictest. If |
... |
arguments passed on to other methods. |
Value
a matrix with the components.
Author(s)
Klaus Nordhausen
Examples
n <- 200
X <- cbind(rnorm(n, sd = 2), rnorm(n, sd = 1.5), rnorm(n), rnorm(n), rnorm(n))
TestCov <- PCAasymp(X, k = 2)
head(components(TestCov))
head(components(TestCov, which = "k"))
[Package ICtest version 0.3-5 Index]