hanaml.OnewayAnova {hana.ml.r}R Documentation

One-way Analysis of variance (ANOVA)

Description

The purpose of one-way ANOVA is to determine whether there is any statistically significant difference between the means of three more independent groups.

Usage

hanaml.OnewayAnova(conn.context,
                   data,
                   group = NULL,
                   sample = NULL,
                   multcomp.method = NULL,
                   significance.level = NULL)

Arguments

conn.context

ConnectionContext
Connection to the SAP HANA System.

data

DataFrame
DataFrame containing the data.

group

character, optional
Name of the group column.
If not provided, it defaults to the first column of data.

sample

character, optional
Name of the sample measurement column.
If not provided, it defaults to the second column of data

multcomp.method

character, optional

Method used to perform multiple comparison tests.

  • "tukey-kramer"

  • "bonferroni"

  • "dunn-sidak"

  • "scheffe"

  • "fisher-lsd"

Defaults to 'tukey-kramer'.

significance.level

double, optional
The significance level when the function calculates the confidence interval in multiple comparison tests.
Values must be greater than 0 and less than 1.
Defaults to 0.05.

Value

See Also

hanaml.OnewayAnovaRepeated

Examples

## Not run: 
Input DataFrame data:
> data
    GROUP  DATA
 0      A   4.0
 1      A   5.0
 2      A   4.0
 3      A   3.0
 4      A   2.0
 ...
 19     C   6.0
 20     C   7.0
 21     C   5.0
 Call OnewayAnova:
 > result <- hanaml.OnewayAnova(conn,
                                data,
                                multcomp.method = "tukey-kramer",
                                significance.level = 0.05)

 Expected output:
 > result[[1]]
      GROUP  VALID_SAMPLES         MEAN        SD
   0      A              8     3.625000  0.916125
   1      B              8     5.750000  1.581139
   2      C              6     6.166667  0.752773
   3    Total           22     5.090909  1.600866

## End(Not run)

[Package hana.ml.r version 1.0.8 Index]