powered by
Generates covariance matrix...
new.cov(x, cls, A)
return an grafics.
is a matrix with the data
is a vector of classes
is a symmetric and positive definite matrix associated to inner product respect to the base of its vectorial space.
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)))
Run the code above in your browser using DataLab