Skip to main content

Two-Sample Mean Test

Two-sample mean test.

Options

  • data | object (required): object of value arrays. Default: none.
  • x | string (required): name of first variable. Default: none.
  • y | string: name of second variable (y or group have to be supplied). Default: none.
  • group | (string|Factor): name of grouping variable (y or group have to be supplied). Default: none.
  • type | string: type of test (either Z Test or T Test). Default: 'T Test'.
  • xstdev | number: first standard deviation (for Z Test). Default: none.
  • ystdev | number: second standard deviation (for Z Test). Default: none.
  • alpha | number: significance level. Default: 0.05.
  • direction | string: test direction (either less, greater, or two-sided). Default: 'two-sided'.
  • diff | number: difference under H0. Default: 0.
  • showDecision | boolean: controls whether to display if the null hypothesis is rejected at the specified significance level. Default: false.

Examples

Live Editor
Result
ReferenceError: Provider is not defined