Hi:

One answer comes from the pwr.r.test() function in package pwr (read its
code to see how it calculates power):

pwr.r.test(n = 100, r = 0.2, sig.level = 0.05, alternative = 'two.sided')
     approximate correlation power calculation (arctangh transformation)

              n = 100
              r = 0.2
      sig.level = 0.05
          power = 0.5142056
    alternative = two.sided

If you're looking for the power function, that's another matter entirely :)

HTH,
Dennis


On Mon, Oct 18, 2010 at 11:48 PM, Jumlong Vongprasert <
jumlong.ubru@gmail.com> wrote:

> Dear All
>    I want to calculate power of test. I want to test H0: Rho = 0 VS H1: Rho
> != 0.
>    Assume, I have r=0.2 and sample size = 100.
>    How I can do this.
> Many Thanks
> Jumlong
>
> --
> Jumlong Vongprasert Assist, Prof.
> Institute of Research and Development
> Ubon Ratchathani Rajabhat University
> Ubon Ratchathani
> THAILAND
> 34000
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@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.
>

	[[alternative HTML version deleted]]

