Skip to content
Prev 139015 / 398506 Next

p-adjust using Benjamn and Hochberg

Keizer_71 <christophe.lo at gmail.com> wrote in
news:15944523.post at talk.nabble.com:
Two that I can think of:

A) Change your posting style. Start including reproducible code. You 
are making the audience guess at what pt might be. At the very least 
you could have included the results of str(pt).

B) Change the argument to p.adjust so that it is the vector of p-values 
rather than what is (probably) the entire dataframe.

See:

gt<-"9997 201674_s_at  0.327547396
9998      221013_s_at  0.834211067
9999      221685_s_at  0.185099475
"
gene.p<-read.table(file=textConnection(gt),header=FALSE)
pa<-p.adjust(gene.p$V3,method="BH")
[1] 0.4913211 0.8342111 0.4913211