Skip to main content

One-Sample Mean Test

One-sample mean test.

Options#

  • data | object (required): object of value arrays. Default: none.
  • variable | string (required): name of variable. Default: none.
  • type | string: type of test (Z Test or T Test). Default: 'T Test'.
  • stdev | number: 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'.
  • mu0 | number: mean under the null hypothesis. 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
Last updated on by Planeshifter