r - How to change confidence interval display format? -
i have dataset this:
row b1 b2 b3 g1 g2 g3 1 6.19 0.69 0.30 0 0 0 2 100 100 100 94.87 98.73 90.56 3 100 90.24 100 40 78.94 87.5 4 93.90 96.15 95.29 98.82 100 100 5 100 98.38 100 88.88 95.87 83.56 6 93.90 96.15 95.29 98.82 100 100
and on, 25000 rows. each row, need calculate difference between b columns , g columns, , confidence interval. have far:
data=read.table("1.txt", header=t, sep="\t") boys=data[,grep('b',names(data))] girls=data[,grep('g',names(data))] ci= sapply(1:nrow(data),function(i){wilcox.test(as.numeric(boys[i,]),as.numeric(girls[i,]),exact=false,correct=false,conf.int=true,conf.level=0.95)$conf.int})
my problem is, every time this, confidence intervals display 2 numbers of interval 1 above other. example, this: 5 15 (for row 1, say)
how ci each row display in single row, this: 5,15
would grateful in regard! in advance!
Comments
Post a Comment