time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (1693B)


      1 
      2 {{alias}}( x, factor[, options] )
      3     Performs a one-way analysis of variance.
      4 
      5     Parameters
      6     ----------
      7     x: Array<number>
      8         Measured values.
      9 
     10     factor: Array
     11         Array of treatments.
     12 
     13     options: Object (optional)
     14         Options.
     15 
     16     options.alpha: number (optional)
     17         Number in the interval `[0,1]` giving the significance level of the
     18         hypothesis test. Default: `0.05`.
     19 
     20     Returns
     21     -------
     22     out: Object
     23         Test result object.
     24 
     25     out.alpha: number
     26         Significance level.
     27 
     28     out.rejected: boolean
     29         Test decision.
     30 
     31     out.pValue: number
     32         p-value of the test.
     33 
     34     out.statistic: number
     35         Value of test statistic.
     36 
     37     out.method: string
     38         Name of test.
     39 
     40     out.means: Object
     41         Group means alongside sample sizes and standard errors.
     42 
     43     out.treatment: Object
     44         Treatment results.
     45 
     46     out.treatment.df: number
     47         Treatment degrees of freedom.
     48 
     49     out.treatment.ss: number
     50         Treatment sum of squares.
     51 
     52     out.treatment.ms: number
     53         Treatment mean sum of squares.
     54 
     55     out.error: Object
     56         Error results.
     57 
     58     out.error.df: number
     59         Error degrees of freedom.
     60 
     61     out.error.ss: number
     62         Error sum of squares.
     63 
     64     out.error.ms: number
     65         Error mean sum of squares.
     66 
     67     out.print: Function
     68         Function to print formatted output.
     69 
     70     Examples
     71     --------
     72     > var x = [1, 3, 5, 2, 4, 6, 8, 7, 10, 11, 12, 15];
     73     > var f = [
     74     ... 'control', 'treatA', 'treatB', 'treatC', 'control',
     75     ... 'treatA', 'treatB', 'treatC', 'control', 'treatA', 'treatB', 'treatC'
     76     ... ];
     77     > var out = {{alias}}( x, f )
     78     {...}
     79 
     80     See Also
     81     --------
     82