Description Usage Arguments Details Value Note Author(s) See Also Examples
Calcalte the confidence interval of the mean from a population or the difference between two means from two populations.
1 |
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? |
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.
a |
the left end point of the confidence interval |
b |
the right end point of the confidence interval |
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.
Chengfeng Liu, Huiqing Liu, Yingyan Liang and Ruibin Feng Maintainer: Chengfeng Liu (478996606@qq.com)
1 | conint(m=67.53,n1=25,s1=10,side="both",alpha=0.95,method="n") #63.61 71.45
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.