Re: [R] R's Spearman

2007-06-03 Thread Raymond Wan
Dear Frank and Felipe, Thank you both for your replies. The code looks exactly like the formula in Japanese wikipedia which I was trying to make sense of (as it wasn't in English wikipedia). Thank you for sharing your code with, Felipe! And the clarification, Frank. Knowing many ways of

[R] R's Spearman

2007-05-28 Thread Raymond Wan
Hi all, I am trying to figure out the formula used by R's Spearman rho (using cor(method=spearman)) because I can't seem to get the same value as by calculating by hand. Perhaps I'm using cor wrong, but I don't know where. Basically, I am running these commands:

Re: [R] R's Spearman

2007-05-28 Thread Raymond Wan
Hi, Chung-hong Chan wrote: Hi, You can try with cor.test(rank(y[1]),rank(y[2])) Thanks for this! It didn't solve my problem, but it helped me realize that the formula I was using by hand is invalid for the tie case. I just realized that with R's cor function, the Pearson correlation

Re: [R] Cramer-von Mises normality test

2006-06-14 Thread Raymond Wan
Hi Robert, On Tue, 13 Jun 2006, Robert Powell wrote: I've been running some normality tests using the nortest package. For some of my datasets the Cramer-von Mises normality test generates an extremely high probability (e.g., 1.637e+31) and indicates normality when the other tests do not. Is

Re: [R] problem with ad.test

2006-05-24 Thread Raymond Wan
Hi, On Tue, 23 May 2006, Bhismadev Chakrabarti wrote: i am a novice and have been trying to use the anderson-darling test on a simple text file with one column of data. ... EQ is the name ( in the top row of the column, imported with read.table( file, header=TRUE) of the column of the data.

Re: [R] normality testing with nortest

2006-05-24 Thread Raymond Wan
Hi all, On Mon, 22 May 2006, Rolf Turner wrote: It is worth noting that if the null hypothesis is true, then the p-value is uniformly distributed on [0,1]. This should be kept in mind when assessing the ``instability'' of p-values. Just wanted

Re: [R] normality testing with nortest

2006-05-22 Thread Raymond Wan
Hi Rolf, On Sun, 21 May 2006, Rolf Turner wrote: I don't know from the nortest package, but it should ***always*** be the case that you test hypotheses ... If the nortest package does it differently (and I don't really see how it possibly could!) then it is confusingly designed. I rather

Re: [R] normality testing with nortest

2006-05-22 Thread Raymond Wan
On Mon, 22 May 2006, Uwe Ligges wrote: Rolf Turner wrote: If the nortest package does it differently (and I don't really see how it possibly could!) then it is confusingly designed. I rather suspect that its design is just fine, and that it does what it should do. I suspect so as well. If

[R] normality testing with nortest

2006-05-21 Thread Raymond Wan
Hi all, I have a question regarding normality testing with the nortest package. I have to admit, my question is so general that it might more be suited a newsgroup such as sci.math. However, just in case it is implemented differently, I was hoping someone who has used it can help me