[R] Power Analysis

From: Schatzi <adele_thompson_at_cargill.com>
Date: Mon, 18 Apr 2011 14:31:19 -0700 (PDT)


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.

______________________________________________
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 18 Apr 2011 - 21:34:15 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 18 Apr 2011 - 22:30:30 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