Skip to main content

Correlation Test

Correlation test.

Options#

  • data | object (required): object of value arrays. Default: none.
  • var1 | string (required): name of first variable. Default: none.
  • var2 | string (required): name of second variable. Default: none.
  • rho0 | number: correlation value under the null hypothesis. Default: 0.
  • alpha | number: significance level. Default: 0.05.
  • direction | string: test direction (either less, greater, or two-sided). Default: 'two-sided'.
  • 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