Re: [R] Wilcoxon nonparametric p-values

2009-05-19 Thread Charles Van deZande
: Peter Dalgaard Date: 05/19/09 10:32:30 To: Charles Van deZande Cc: r-help@r-project.org Subject: Re: [R] Wilcoxon nonparametric p-values Charles Van deZande wrote: > Thanks Peter, > There are 8 measurements less than 8.5, so calculating the probability > (binomial) of 8, or fewer, hap

Re: [R] Wilcoxon nonparametric p-values

2009-05-19 Thread Charles Van deZande
Thanks Peter, There are 8 measurements less than 8.5, so calculating the probability (binomial) of 8, or fewer, happening by chance with n = 20 and p = 0.50 gives P = 0.25-- the book answer. I've tried several problems in other textbooks and in each case I get vastly different P-values than I get

[R] One Sample Nonparametric

2009-05-17 Thread Charles Van deZande
Hi! I'm doing one and two sample nonparametric tests for the median using wilcox test. For a one-sample test I use: > wilcox.test(x, mu =50 (or whatever), y=NULL,correct=TRUE) For two-sample test I use: > wilcox.test(x,y,correct=TRUE) The problem is when I try to duplicate problems from textboo