View source: R/newcovmultipca.r
new.cov | R Documentation |
Generates covariance matrix...
new.cov(x, cls, A)
x |
is a matrix with the data |
cls |
is a vector of classes |
A |
is a symmetric and positive definite matrix associated to inner product respect to the base of its vectorial space. |
return an grafics.
library(plsgenomics)
data(SRBCT)
mydata<-SRBCT$X
mydata<-mydata[1:50,1:20]
groups<-as.factor(SRBCT$Y)[1:50]
new.cov(x=mydata,cls=groups,A=diag(ncol(mydata)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.