Learn R Programming

asbio (version 1.12-1)

one.sample.z: One sample z-test

Description

Provides a one-sample hypothesis test. The test assumes that the underlying population is normal and furthermore that \(\sigma\) is known.

Usage

one.sample.z(data = NULL, null.mu = 0, xbar = NULL, sigma, n = NULL, 
alternative = "two.sided", conf = 0.95, na.rm = FALSE, fpc = FALSE, N = NULL)

Arguments

Value

Returns a test statistic and a p-value.

Details

The function can use either raw data is.null(data)==FALSE or summarized data if is.null(data)==TRUE. With the later xbar and n must be specified by the user.

See Also

Examples

Run this code
one.sample.z(null.mu = 131, xbar = 126, sigma = 12, n = 85, alternative = "two.sided")

Run the code above in your browser using DataLab