# NOT RUN {
showClass("flip.object")
y=matrix(rnorm(50),10,5)
colnames(y)=c("X1","X2","Y1","Y2","Y3")
res=flip(y)
## Sort by p-values
sort(res)
## Selecting tests
res[1:2]
#same as
res["X"]
#different from (it selects tests having "1" or "2" in the name)
res[c("1","2")]
## Concatenates two flip-objects
cFlip(res[1:2],res[5])
#plotting results
plot(flip(y))
#Get any slot of the flip-object. eg the permutation space:
head(getFlip(res,"permT"))
#Get any element of the list obj@data. eg Y:
getFlip(res,"Y")
#Get any columns of the results table: obj@res. eg Statistic (choose among colnames(obj@res) ):
getFlip(res,"Stat")
# }
Run the code above in your browser using DataLab