Re: [R] calculate power of test

2010-10-20 Thread Greg Snow
Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Jumlong Vongprasert Sent: Tuesday, October 19, 2010 12:49 AM To: r-help@r-project.org Subject: [R] calculate power of test Dear All

[R] calculate power of test

2010-10-19 Thread Jumlong Vongprasert
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

Re: [R] calculate power of test

2010-10-19 Thread Dennis Murphy
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