R: Sample Mean Test & Confidence Interval (SD Known)
Code Only
|
Code with Rweb Output
|
library(TeachingDemos)
#### z.test(x, mu = 0, stdev, alternative = c("two.sided", "less", "greater"), #### sd = stdev, conf.level = 0.95) x <- rnorm(25, 100, 5) z.test(x, 99, 5) |
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.