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

View source: R/z.conf.R

z.confR Documentation

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)

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.

Value

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

Author(s)

Reza Mohammadi a.mohammadi@uva.nl

Examples

data(churn)

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

liver documentation built on Aug. 22, 2025, 1:08 a.m.