Learn R Programming

liver (version 1.23)

t_conf: Confdidence interval for mean

Description

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

Usage

t_conf(x, 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.

conf

confidence level of the interval.

...

further arguments to be passed to t.test.

Author

Reza Mohammadi a.mohammadi@uva.nl

Examples

Run this code
data(churn)

t_conf(churn$customer.calls, conf = 0.9)

Run the code above in your browser using DataLab