Re: [R] Power curve for a wilcoxon test

From: Ben Bolker <bolker_at_ufl.edu>
Date: Mon, 14 Apr 2008 15:29:14 +0000 (UTC)

Duncan Murdoch <murdoch <at> stats.uwo.ca> writes:

>
> On 4/14/2008 8:59 AM, Louisa Hay wrote:
> > Hi,
> > I am trying to write R code to produce a
power curve to show how the power of a
> > Wilcoxon-test varies depending on the mean, with data
generated from a
uniform distribution. Any ideas
> how I should go about this?Louisa
>
> I think I gave you enough of a hint to do this one in my previous
> response to you. Did you read it?
>
> (Are we doing your homework for you?)
>
> Duncan Murdoch

   To be fair, it's a little harder to do this for nonparametric tests and non-normal distributions (the analytic result, or the non-central distributions, or functions like power.t.test, break down if you're talking about Wilcoxon with uniformly distributed data ... although I'm sure there are still analytic solutions if one wants to work a bit harder). I agree that the poster isn't showing that much proof that she's tried hard to tackle this herself, but "simulate it and see how many times it is rejected" might be hard to put into practice if one were just beginning with R.

  Ben



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 14 Apr 2008 - 18:45:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Apr 2008 - 19:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive