difference of the means of two independent samples
[dif]=nand2mean(sample1,sample2) [dif]=nand2mean(sample1,sample2,conf)
real or complex vector or matrix
real or complex vector or matrix
real scalar between 0 and 1
This function computes an estimate (dif(1)) for the difference of the means of two independent samples (arrays sample1 and sample2) and gives the half amplitude of the range of variability of dif with an indicated confidence level (dif(2)). The choice of the normal or t functions as the probability function depends on the sizes of sample1 and sample2 (cdfnor is chosen if the samples totalize 103 values or more, else cdft is used). We suppose that the underlying variances of both populations are equal. NAN values are not counted.
In Labostat, NAN values stand for missing values in tables.
In absence of the confidence parameter a confidence level of 95% is assumed.
Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, 5th edition, J.Wiley & Sons, 1990.