Learn R Programming

MultiGroupO (version 0.4.0)

new.cov: Function for the new covariance matrix in the multigroup PCA method

Description

Generates covariance matrix...

Usage

new.cov(x, cls, A)

Value

return an grafics.

Arguments

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.

Examples

Run this code
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