Description Usage Arguments Details Value Author(s) References Examples
Perform two-sample RMD test on vectors of data.
1 2 |
x |
numeric vector of data values. |
y |
numeric vector of data values. |
alternative |
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". |
mu1 |
mean value of x, or median if not given |
mu2 |
mean value of y, or median if not given |
method_p |
a character string specifying the method of calculating p-value, must be one of "exact" (default), "sampling". |
samplenum |
The number of samples |
samplemethod |
a discrete value indicating the method of sampling. "S" represents sample function sampling; "W" represents Cistern Sampling; "R" represents Put-back sampling. |
conf.level.sample |
p-value confidence level for SRS sampling |
The test is to test the difference of deviance of two samples, which has different sample means.
The arguments samplenum
and samplemethod
only work when method_p="sampling"
.
method |
the test uesd |
stat |
RMD of the original data. |
pval |
p-value for the test. |
conf.int |
the confidence interval for p-value(only if method_p = "sampling") |
alternative |
a character string describing the alternative hypothesis |
Jiasheng Zhang, Feng Yu, Yangyang Zhang, Siwei Deng. Tutored by YuKun Liu and Dongdong Xiang.
Higgins, J. J. (2004). An introduction to modern nonparametric statistics. Pacific Grove, CA: Brooks/Cole.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.