Learn R Programming

UsingR (version 2.0-7)

simple.z.test: Implement basic z-test for illustrative purposes

Description

Imlements a z-test similar to the t.test function

Usage

simple.z.test(x, sigma, conf.level=0.95)

Arguments

x

A data vector

sigma

the known variance

conf.level

Confidence level for confidence interval

Value

Returns a confidence interval for the mean

See Also

t.test, prop.test

Examples

Run this code
# NOT RUN {
  x<-rnorm(10,0,5)
  simple.z.test(x,5)
# }

Run the code above in your browser using DataLab