hanaml.median.test.1samp.Rdhanaml.median.test.1samp is a R wrapper for SAP HANA PAL One-Sample Median Test.
hanaml.median.test.1samp( data, col = NULL, mu = NULL, test.type = NULL, confidence.interval = NULL, thread.ratio = NULL )
| data |
|
|---|---|
| col |
|
| mu |
|
| test.type |
Defaults to "two.sides". |
| confidence.interval |
|
| thread.ratio |
|
Dataframe
Dataframe containing the statistics results from the one-sample test.
This algorithm performs a one-sample nonparametric test to check whether the median of the data is different from the user-specified one.
Input DataFrame data:
> data$Collect()
X1
1 85
2 65
3 20
...
18 40
19 64
20 8
Call the function:
> result <- hanaml.median.test.1samp(data)
Output:
> result$Collect()
STAT_NAME STAT_VALUE
1 total number 2.000000e+01
2 number smaller than m0 0.000000e+00
3 number larger than m0 2.000000e+01
4 estimated median 6.150000e+01
5 CI for estimated median, lower bound 2.700000e+01
6 CI for estimated median, upper bound 8.300000e+01
7 sign test p-value 2.151786e-05