Learn R Programming

liver (version 1.23)

z.conf: Confdidence interval for mean using z-distribution

Description

Compute a confidence interval for the mean of a response variable using the z-distribution.

Usage

z.conf(x, sigma = NULL, conf = 0.95)

Value

A vector with two values: lower and upper confidence limits for the mean of the response variable.

Arguments

x

a (non-empty) numeric vector of data values.

sigma

the population standard deviation. If NULL, the sample standard deviation is used. This is useful when the population standard deviation is known, otherwise it should be left as NULL.

conf

confidence level of the interval.

Author

Reza Mohammadi a.mohammadi@uva.nl

Examples

Run this code
data(churn)

z.conf(x = churn$customer.calls, conf = 0.9)

Run the code above in your browser using DataLab