time-to-botec/squiggle/node_modules/@stdlib/stats/fligner-test/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

69 lines
1.4 KiB
Plaintext

{{alias}}( ...x[, options] )
Computes the Fligner-Killeen test for equal variances.
Parameters
----------
x: ...Array
Measured values.
options: Object (optional)
Options.
options.alpha: number (optional)
Number in the interval `[0,1]` giving the significance level of the
hypothesis test. Default: `0.05`.
options.groups: Array (optional)
Array of group indicators.
Returns
-------
out: Object
Test result object.
out.alpha: number
Significance level.
out.rejected: boolean
Test decision.
out.pValue: number
p-value of the test.
out.statistic: number
Value of test statistic.
out.method: string
Name of test.
out.df: Object
Degrees of freedom.
out.print: Function
Function to print formatted output.
Examples
--------
// Data from Hollander & Wolfe (1973), p. 116:
> var x = [ 2.9, 3.0, 2.5, 2.6, 3.2 ];
> var y = [ 3.8, 2.7, 4.0, 2.4 ];
> var z = [ 2.8, 3.4, 3.7, 2.2, 2.0 ];
> var out = {{alias}}( x, y, z )
> var arr = [ 2.9, 3.0, 2.5, 2.6, 3.2,
... 3.8, 2.7, 4.0, 2.4,
... 2.8, 3.4, 3.7, 2.2, 2.0
... ];
> var groups = [
... 'a', 'a', 'a', 'a', 'a',
... 'b', 'b', 'b', 'b',
... 'c', 'c', 'c', 'c', 'c'
... ];
> out = {{alias}}( arr, { 'groups': groups })
See Also
--------