ZTESTM macro

Performs a two-sample z-test for means, assuming the two samples have known variances.

If this function is not available, you must install the Analysis ToolPak add-in.

Syntax

ZTESTM(inprng1, inprng2, outrng, labels, alpha, difference, var1, var2)

ZTESTM?(inprng1, inprng2, outrng, labels, alpha, difference, var1, var2)

Inprng1    is the input range for the first data set.

Inprng2    is the input range for the second data set.

Outrng    is the first cell (the upper-left cell) in the output table or the name, as text, of a new sheet to contain the output table. If FALSE, blank, or omitted, places the output table in a new workbook.

Labels    is a logical value.

 

Alpha    is the confidence level for the test. If omitted, alpha is 0.05.

Difference    is the hypothesized difference in means. If omitted, difference is 0.

Var1    is the variance of the first data set.

Var2    is the variance of the second data set.

Return to index