statsmodels.stats.weightstats._zstat_generic2¶
- statsmodels.stats.weightstats._zstat_generic2(value, std, alternative)[source]¶
generic (normal) z-test based on summary statistic
- The test statistic is :
zstat = value / std
and is assumed to be normally distributed with standard deviation
std.- Parameters:¶
- value
floatorndarray Value of a sample statistic, for example mean.
- value2
floatorndarray Value, for example mean, of the second sample.
- std
floatorndarray Standard error of the sample statistic value.
- alternative
str The alternative hypothesis, H1, has to be one of the following
‘two-sided’ : H1:
value1 - value2 - diffnot equal to 0.‘larger’ : H1:
value1 - value2 - diff > 0‘smaller’ : H1:
value1 - value2 - diff < 0
- value
- Returns:¶
Last update:
Jun 10, 2024