z.test: Perform a z test

Description Usage Arguments Details Value Author(s) Examples

View source: R/z.test.R

Description

This function does the standard z-test, which tests a particular dataset against a specified value

Usage

1
z.test(data, mean = 0, sd = 1, direction = "both")

Arguments

data

a vector of values which will be used to compute a mean

mean

the value the z-test is tested against

sd

the standard deviation of the null distribution

direction

either "positive", "negative", or "both" (for a two-tailed test)

Details

Perform a z-test in R

z.test will take a vector and determine whether it differs from a chosen value specified by mean

Value

a list containing the computed mean, the z-statistic, and the p-value

Author(s)

Dustin Fife

Examples

1
2
k = rnorm(15, 10, 3)
z.test(k, mean=5, sd=3)

fifer documentation built on May 30, 2017, 7:40 a.m.

Related to z.test in fifer...