Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Author(s)

Joh Verzani

See Also

t.test, prop.test

Examples

x<-rnorm(10,0,5)
  simple.z.test(x,5)

UsingR

Data Sets, Etc. for the Text "Using R for Introductory Statistics", Second Edition

v2.0-6
GPL (>= 2)
Authors
John Verzani <verzani@math.csi.cuny.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.