conint: Calculate the Confidence Interval

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

Calcalte the confidence interval of the mean from a population or the difference between two means from two populations.

Usage

1
conint(TrnX = NULL, TrnY = NULL, m, n1, n2, s1, s2, side = "both", alpha = 0.95, method = "n")

Arguments

TrnX

the observed values of a random sample from a distribution

TrnY

the observed values of a random sample from another distribution

m

the mean of the observed values of the first random sample

n1

the number of the random variables of TrnX

n2

the number of the random variables of TrnY

s1

the standard variance of TrnX

s2

the standard variance of TrnY

side

whether the confidence interval is one or two sides

alpha

the significance level of the confidence level

method

Are we going to calculate the confidence interval of the mean from a population or the difference between two means from two populations? Is the population from a normal distribution, a t distribution or a chi-square distribution?

Details

The confidence interval consists of some information such as the significance level and whether it is one or two sides. The random samples may come from normal distributions,t distributions or chi-square distributions.

Value

a

the left end point of the confidence interval

b

the right end point of the confidence interval

Note

Although we have the confidence interval of the mean or the difference between two means, we can't ensure that the mean or the difference between two means is bound to be in the confidence interval.

Author(s)

Chengfeng Liu, Huiqing Liu, Yingyan Liang and Ruibin Feng Maintainer: Chengfeng Liu (478996606@qq.com)

See Also

findroot

Examples

1
conint(m=67.53,n1=25,s1=10,side="both",alpha=0.95,method="n") #63.61 71.45

hypothesestest documentation built on May 2, 2019, 8:33 a.m.