Re: [R] How to compute p-Values

2009-01-14 Thread YH Deng
I think what you need is just count. For example, if you want to know the p value of the mean bigger than 0 and you have 5 such cases in your draws then the p value is 5/1000=0.005, right? HTH YHDENG -Original Message- From: r-help-boun...@r-project.org

Re: [R] heatmap.2 and three colours for specific ran gesþ

2009-01-07 Thread YH Deng
a-matrix(rnorm(36,1,3),6,6) ifelse(a(-1),1,ifelse(a=1a=-1,2,3)) heatmap.2(a, col=rev(redgreen(3))) HTH -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Daren Tan Sent: January 6, 2009 11:53 PM To: r-help@r-project.org Subject: [R]

Re: [R] Power functions?

2009-01-03 Thread YH Deng
(-1)^2 Or a - -1 a^2 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of rkevinbur...@charter.net Sent: January 3, 2009 3:33 PM To: r-help@r-project.org; r-h...@stat.math.ethz.ch Subject: [R] Power functions? I had a question about the