# NOT RUN {
# load st library
library("st")
# prostate data set
data(singh2002)
X = singh2002$x
L = singh2002$y
dim(X) # 102 6033
length(L) # 102
# correlation shared t statistic
# }
# NOT RUN {
score = cst.stat(X, L)
idx = order(abs(score), decreasing=TRUE)
idx[1:10]
# [1] 610 1720 364 332 914 3940 4546 1068 579 4331
# }
# NOT RUN {
# compared with:
# Student t statistic
score = studentt.stat(X, L)
idx = order(abs(score), decreasing=TRUE)
idx[1:10]
# [1] 610 1720 364 332 914 3940 4546 1068 579 4331
# for the same example using the shrinkage cat score see shrinkcat.stat()
# }
Run the code above in your browser using DataLab