R/ClearCode34_Documentation.R

Defines functions predict.clearCode34 clearCode34

Documented in clearCode34 predict.clearCode34

clearCode34<-function()
  {  library(pamr)
  data(xn)
  data(classes)
  data(test)
  trainSet <- list(x=scale(xn), y=classes, geneid=rownames(xn), genenames=rownames(xn))
  mytrain <-pamr.train(trainSet)
}

predict.clearCode34<-function(){
  sum(rownames(trainSet$x)==rownames(test))
  #boxplot(scale(data.frame(trainSet$x,test)))
  pamr.predict(mytrain,scale(test),0)
  table(pamr.predict(mytrain,scale(test),0))
  pamr.predict(mytrain,scale(test),0,type="posterior")
}
aedin/KidneyCancerSubtypes documentation built on May 24, 2018, 8:11 a.m.