## load VDX dataset
data(vdxs)
## retrieve ESR1, AURKA and MKI67 gene expressions
x1 <- data.vdxs[ ,"208079_s_at"]
x2 <- data.vdxs[ ,"205225_at"]
y <- data.vdxs[ ,"212022_s_at"]
## is MKI67 significantly more correlated to AURKA than ESR1?
cc.ix <- complete.cases(x1, x2, y)
cordiff.dep(r.x1y=abs(cor(x=x1[cc.ix], y=y[cc.ix], use="everything",
method="pearson")), r.x2y=abs(cor(x=x2[cc.ix], y=y[cc.ix],
use="everything", method="pearson")), r.x1x2=abs(cor(x=x1[cc.ix],
y=x2[cc.ix], use="everything", method="pearson")), n=sum(cc.ix),
alternative="greater")
Run the code above in your browser using DataLab