powered by
Imlements a z-test similar to the t.test function
simple.z.test(x, sigma, conf.level=0.95)
A data vector
the known variance
Confidence level for confidence interval
Returns a confidence interval for the mean
t.test, prop.test
# NOT RUN { x<-rnorm(10,0,5) simple.z.test(x,5) # }
Run the code above in your browser using DataLab