[R] simple Q: required sample size & usage of power.t.test()
osiander@24on.cc
osiander at 24on.cc
Mon Apr 15 23:20:09 CEST 2002
Hi community,
Seems I am too stupid:
I try to calculate with power.t.test() an example from the statistics textbook [Jerrold H. Zar, Biostatistical Analysis, 2nd edition, Prentice Hall, 1984, Chapter 8, Exercise 8.4, (page 120)]:
-------
A sample of size 18 has a mean of 13.55cm and a variance of 6.4512cm^2.
(a) Calculate the 95% confidence interval for the population mean.
(b) How large a sample would have to be taken from this population to estimate µ to within 1.00cm,
with 95% confidence?
(c) 2.00cm with 95% confidence?
(d) 2.00cm with 99% confidence?
Result should be - according to the answers appendix - (a) 13.55 +- 1.26cm (b) n=29, (c) n=10, (d) n=11
-------
Here my questions:
(1) which functions in R can be used to solve (a)
(2) what has to be the syntax to answer (b), (c) and (d) ?
Thanks in advance,
Osiander
--
osiander at 24on.cc
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list