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

Sample TTest

Description

Perform the T-test for one sample.

Usage

hanaml.TTest1Samp (conn.context,
                  data,
                  col = NULL,
                  mu = NULL,
                  test.type = NULL,
                  conf.level = NULL)

Arguments

conn.context

ConnectionContext
The connection to the SAP HANA system.

data

DataFrame
DataFrame containing the data.

col

character, optional
Names of column for T-test.
No default value.

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'.

conf.level

double, optional
Confidence level for alternative hypothesis confidence interval.
Defaults to 0.95.

Format

R6Class object.

Value

Dataframe
Dataframe containing the statistics results from the t-test.

Examples

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

 > output2<- hanaml.TTest1Samp(conn, data = data)
 > output2$stats.output$Collect()
                STAT_NAME    STAT_VALUE
 1                t-value -1.406288e+01
 2      degree of freedom  4.000000e+00
 3                p-value  1.483726e-04
 4 _PAL_MEAN_DIFFERENCES_ -8.200000e+00
 5       confidence level  9.500000e-01
 6             lowerLimit -9.818932e+00
 7             upperLimit -6.581068e+00

## End(Not run)

[Package hana.ml.r version 1.0.8 Index]