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

Independent sample TTest

Description

Perform the T-test for the mean difference of two independent samples.

Usage

hanaml.TTestInd(conn.context,
                data,
                cols = NULL,
                mu = NULL,
                test.type = NULL,
                var.equal = NULL,
                conf.level = NULL)

Arguments

conn.context

ConnectionContext Database connection object.

data

DataFrame Dataframe containing the data.

cols

character, optional
Names of the two columns for independent T-test. No default value. If not specified, then data must only have two columns, otherwise an error shall be issued.

mu

double, optional
Hypothesized mean of the population underlying the sample.

Defaults to '0'.

test.type

character, optional
The alternative hypothesis type.

  • 'two_sides'

  • 'less'

  • 'greater'

Defaults to 'two_sides'.

var.equal

logical, optional
Controls whether to assume that the two samples have equal variance.

Defaults to 'FALSE'.

conf.level

double, optional
Confidence level for alternative hypothesis confidence interval.

Defaults to '0.95'.

Value

Dataframe
Statistics of the independent sample T-test.

Examples

 ## Not run: 
 Original data
 > data$Collect()
   X1 X2
 1  1 10
 2  2 12
 3  4 11
 4  7 15
 5 NA 10

 Performing Independent sample t-test
 > output1 <- hanaml.TTestInd(conn, data = data)
 > output1$Collect()
          STAT_NAME   STAT_VALUE
1           t-value  -5.01377413
2 degree of freedom   5.64975672
3           p-value   0.00287491
4     _PAL_MEAN_X1_   3.50000000
5     _PAL_MEAN_X2_  11.60000000
6  confidence level   0.95000000
7        lowerLimit -12.11327798
8        upperLimit  -4.08672202


## End(Not run)


[Package hana.ml.r version 1.0.8 Index]