seeding.auto.stop | R Documentation |
Returns increments (nFu) of iterative projections of a seed matrix onto a covariance matrix upto k, which properly chosen by satisfying the terminating condition eps
(eps
can be selected by users).
seeding.auto.stop(seed, covx, n, u.max=30, eps=0.01)
seed |
numeric matrix (p * d), a seed matrix |
covx |
numeric matrix (p * p), covariance matrix of X |
n |
numeric, sample sizes |
u.max |
numeric, maximum number of projection. The default value is equal to 30. |
eps |
numeric, a value of a condition for terminating the projection. The default value is equal to 0.01. |
nFu |
n*Fu values |
u |
the number of projection properly chosen by satisfying the terminating condition |
data(cookie) myseq<-seq(141,651,by=2) X<-as.matrix(cookie[-c(23,61),myseq]) Y<-as.matrix(cookie[-c(23,61),701:704]) seed <- cov(X,Y) covx <- cov(X) seeding.auto.stop(seed, covx, n=dim(X)[1]) seeding.auto.stop(seed, covx, n=dim(X)[1], u.max=20, eps=0.001)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.