hanaml.median.test.1samp.Rd
hanaml.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
)
DataFrame
DataFrame containting the data.
character, optional
Name of the data column that needs to be tested.
If it is not given, the input dataframe must only have one column.
double, optional
Hypothesized median of the population underlying the sample.
Defaults to 0.
character, optional
The alternative hypothesis type.
"two.sides"
"less"
"greater"
Defaults to "two.sides".
double, optional
Confidence level for alternative hypothesis confidence interval.
Defaults to 0.95.
double, optional
Controls the proportion of available threads that can be used by this
function.
The value range is from 0 to 1, where 0 indicates a single thread,
and 1 indicates all available threads.
Values between 0 and 1 will use up to
that percentage of available threads.Values outside this
range are ignored.
Defaults to 0.
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