interval_estimate3: Two sided interval estimation of 'mu' of one non-normal...

View source: R/interval_estimate3.R

interval_estimate3R Documentation

Two sided interval estimation of mu of one non-normal sample with large sample size

Description

Compute the two sided interval estimation of mu of one non-normal sample with large sample size when the population variance is known or unknown.

Usage

interval_estimate3(x, sigma = -1, alpha = 0.05)

Arguments

x

A numeric vector.

sigma

The standard deviation of the population. sigma>=0 indicates it is known, sigma<0 indicates it is unknown. Default to unknown standard deviation.

alpha

The significance level, a real number in [0, 1]. Default to 0.05. 1-alpha is the degree of confidence.

Value

A data.frame with variables:

mean

The sample mean.

a

The confidence lower limit.

b

The confidence upper limit.

Author(s)

Ying-Ying Zhang (Robert) robertzhangyying@qq.com

References

Zhang, Y. Y., Wei, Y. (2013), One and two samples using only an R funtion, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.2991/asshm-13.2013.29")}.

Examples

x = rexp(50, 1/2); x
interval_estimate3(x)

OneTwoSamples documentation built on March 31, 2023, 11:49 p.m.