####################Correlation Study#####################
# load data
data(correlation.data)
# Read the expression values
Y<-exprs(correlation.data)
# Read the phenotype
x<-pData(correlation.data)
# Create test Spectrum
test.specs<-cbind.data.frame(label=c("pearson","spearman","shapiro"),
func.name=c("row.pearson","row.spearman","row.slr.shapiro"),
x=rep("x",3),
opts=rep("",3))
# Specify the tests
ebp.def<-cbind.data.frame(wght=c("shapiro.ebp","(1-shapiro.ebp)"),
mthd=c("pearson.ebp","spearman.ebp"))
# Perform the Hybrid test
corr.res<-hybrid.test(correlation.data,test.specs,ebp.def)
head(corr.res)
####################Three group comparison###################
# load data
data(GroupComp.data)
# Read the expression values
brain.express.set <- exprs(GroupComp.data)
head(brain.express.set)
# Read the phenotype
brain.pheno.data <- pData(GroupComp.data)
brain.pheno.data
# Specify the tests
test.specs<-cbind.data.frame(label=c("anova","kw","shapiro"),
func.name=c("row.oneway.anova","row.kruskal.wallis","row.kgrp.shapiro"),
x=rep("grp",3),
opts=rep("",3))
# Define the final ebp
ebp.def<-cbind.data.frame(wght=c("shapiro.ebp","(1-shapiro.ebp)"),
mthd=c("anova.ebp","kw.ebp"))
#Perform the Hybrid test
Kgrp.res<-hybrid.test(GroupComp.data,test.specs,ebp.def)
Run the code above in your browser using DataLab