Yes, Phil!
You are right, I forgot put the bo.id.pred$ ahead of predict. Thanks!
On Wed, May 5, 2010 at 9:48 AM, Phil Spector wrote:
> Changbin -
> Perhaps you meant
>
> b.order = bo.id.pred[order(bo.id.pred$predict,decreasing=TRUE),]
>
>- Phil Spector
Thanks Jim!
I forgot the data$predict. Now it works for me too.
Thanks so much!
On Wed, May 5, 2010 at 9:36 AM, jim holtman wrote:
> Works fine for me:
>
> > x
> gene_idpredict
> 43 637882902 0.07823997
> 53 638101634 0.66256490
> 61 639084581 0.08587504
> 41 637832824 0.02461066
> 25
Works fine for me:
> x
gene_idpredict
43 637882902 0.07823997
53 638101634 0.66256490
61 639084581 0.08587504
41 637832824 0.02461066
25 637261662 0.11613879
22 637240022 0.06350477
62 639084582 0.02238538
63 639097718 0.06792841
44 637943079 0.04532625
80 640158389 0.06582658
3 63700651
On May 5, 2010, at 12:31 PM, Changbin Du wrote:
#sort the data by predicted probability
b.order<-bo.id.pred[(order(-predict)),]
b.order[1:20,]
gene_idpredict
43 637882902 0.07823997
53 638101634 0.66256490
61 639084581 0.08587504
41 637832824 0.02461066
25 637261662 0.11613879
22 63724
> #sort the data by predicted probability
> b.order<-bo.id.pred[(order(-predict)),]
> b.order[1:20,]
gene_idpredict
43 637882902 0.07823997
53 638101634 0.66256490
61 639084581 0.08587504
41 637832824 0.02461066
25 637261662 0.11613879
22 637240022 0.06350477
62 639084582 0.02238538
63 639
5 matches
Mail list logo