[R] Power Analysis

Schatzi adele_thompson at cargill.com
Mon Apr 18 23:31:19 CEST 2011


I am trying to do a power analysis to get the number of replicas per
treatment.

If I try to get the power it works just fine:
setn=c(2,3)
sdx=c(1.19,4.35)
power.t.test(n = setn, delta = 13.5, sd = sdx, sig.level = 0.05,power =
NULL)

If I go the other way to obtain the "n" I have problems.
sdx=c(1.19,4.35)
pow=c(.8,.8)
power.t.test(n = NULL, delta = 13.5, sd = sdx, sig.level = 0.05, power =
0.8)

Is there any way to do this? Thank you.

--
View this message in context: http://r.789695.n4.nabble.com/Power-Analysis-tp3458786p3458786.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list