Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "stats/anova1/docs/types/index.d"

Index

Interfaces

Functions

Functions

Export assignment anova1

  • Perform a one-way analysis of variance (ANOVA).

    throws

    must provide valid options

    throws

    factor must have at least two unique elements

    throws

    length of x must be greater than or equal to two

    throws

    x and factor must have the same length

    Parameters

    Returns Results

    test results

    Example

    var x = [ 1, 3, 5, 2, 4, 6, 8, 7, 10, 11, 12, 15 ];
    var f = [ 'control', 'treatA', 'treatB', 'treatC', 'control', 'treatA', 'treatB', 'treatC', 'control', 'treatA', 'treatB', 'treatC' ];
    var out = anova1( x, f );
    // returns {...}