Re: [R] power.t.test formula

2009-04-25 Thread Karl Ove Hufthammer
Greg Snow: > Look at the pwr package, it has functions for 2 samples of different > sizes. > > Hope this helps, Great! Thanks. -- Karl Ove Hufthammer __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read t

Re: [R] power.t.test formula

2009-04-24 Thread Greg Snow
p-boun...@r- > project.org] On Behalf Of Karl Ove Hufthammer > Sent: Friday, April 24, 2009 2:41 AM > To: r-h...@stat.math.ethz.ch > Subject: Re: [R] power.t.test formula > > Peter Dalgaard: > > >> Does anyone of you knows a reference for the formula used in > powe

Re: [R] power.t.test formula

2009-04-24 Thread Peter Dalgaard
Usuario R wrote: > Hello, > Thank you, but can you understand this result? first I calculate the sd > for n = 2 and then n with that sd. It should give me 2 right? > >> FC = 1.5 >> alfa = 0.01 >> power = 0.85 >> sd1 <- power.t.test( n = 2, delta = FC, sig.level = alfa, > +pow

Re: [R] power.t.test formula

2009-04-24 Thread Usuario R
Hello, Thank you, but can you understand this result? first I calculate the sd for n = 2 and then n with that sd. It should give me 2 right? > FC = 1.5 > alfa = 0.01 > power = 0.85 > sd1 <- power.t.test( n = 2, delta = FC, sig.level = alfa, +power = power, type = "two.sample"

Re: [R] power.t.test formula

2009-04-24 Thread Karl Ove Hufthammer
Peter Dalgaard: >> Does anyone of you knows a reference for the formula used in power.t.test >> function? And also why it uses the Student's distribution instead of >> Normal. (I know both of them can be used but don't see whether choose one >> or the other) > > It is a straightforward first-pri

Re: [R] power.t.test formula

2009-04-23 Thread Peter Dalgaard
Usuario R wrote: > Hi, > > Does anyone of you knows a reference for the formula used in power.t.test > function? And also why it uses the Student's distribution instead of Normal. > (I know both of them can be used but don't see whether choose one or the > other) It is a straightforward first-pr

[R] power.t.test formula

2009-04-23 Thread Usuario R
Hi, Does anyone of you knows a reference for the formula used in power.t.test function? And also why it uses the Student's distribution instead of Normal. (I know both of them can be used but don't see whether choose one or the other) Thank you. Regards [[alternative HTML version deleted