wcor {RUVcorr} | R Documentation |
wcor
returns correlations weighted according to a provided object of
class Weights
.
wcor(X, anno, Factor, Weights)
X |
A matrix of gene expression values. |
anno |
A dataframe or a matrix containing the annotation of arrays in |
Factor |
A character string corresponding to a column name of |
Weights |
An object of class |
wcor
returns a matrix.
Saskia Freytag
Y<-simulateGEdata(500, 500, 10, 2, 5, g=NULL, Sigma.eps=0.1, 250, 100, intercept=FALSE, check.input=FALSE) anno<-as.matrix(sample(1:5, dim(Y$Y)[1], replace=TRUE)) colnames(anno)<-"Factor" weights<-findWeights(Y$Y, anno, "Factor") wcor(Y$Y[,1:5], anno, "Factor", weights)