hanaml.ftest.equal.var.Rdhanaml.ftest.equal.var is a R wrapper for SAP HANA PAL Equal Variance Test.
hanaml.ftest.equal.var(data.x, data.y, test.type = NULL)
| data.x |
|
|---|---|
| data.y |
|
| test.type |
Defaults to 'two.sides'. |
DataFrame
Statistics, structured as follows:
STAT_NAME Name of statistics
STAT_VALUE Value of statistics
This function uses statistical F Test to compare two variances s1 and s2 of two samples by dividing them, i.e. F = s1^2 / s2^2.
Two input Dataframe:
> df.x$Collect()
X
1 1
2 2
3 4
4 7
5 3
> df.y$Collect()
Y
1 10.0
2 15.0
3 12.0
Call the function:
> res <- hanaml.ftest.equal.var(data.x, data.y, test.type="two.sides")
Results:
> res$Collect()
STAT_NAME STAT_VALUE
1 F Value 0.836842
2 numerator degree of freedom 4.000000
3 denominator degree of freedom 2.000000
4 p-value 0.783713