hanaml.TTestPaired.Rd
hanaml.TTestPaired is a R wrapper for SAP HANA PAL T-Test.
hanaml.TTestPaired(
data,
cols = NULL,
mu = NULL,
test.type = NULL,
var.equal = NULL,
conf.level = NULL
)
DataFrame
DataFrame containting the data.
character, optional
Names of the two columns for paired samples.
No default value.
If not specified, then data must only have
two columns, otherwise an error shall be issued.
double, optional
Hypothesized mean of the population underlying the sample.
Defaults to '0'.
character, optional
The alternative hypothesis type.
'two_sides'
'less'
'greater'
Defaults to 'two_sides'.
logical, optional
Controls whether to assume that the two samples have equal variance.
Defaults to FALSE.
double, optional
Confidence level for alternative hypothesis confidence interval.
Defaults to 0.95.
Dataframe
Statistics of the paired sample T-test.
It is a statistic procedure used to determine whether the mean difference between two sets of paired observations is equal to a given value.
Input DataFrame data:
> data$Collect()
X1 X2
1 1 10
2 2 12
3 4 11
4 7 15
5 3 10
Call the function:
> output <- hanaml.TTestPaired(data)
Output:
> output$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