FtmTest {npordtests} | R Documentation |
Ferdhiana, Terpstra and Magel (FTM) Test
Description
FtmTest
performs FTM test.
Usage
FtmTest(formula, data, alpha = 0.05, na.rm = TRUE, verbose = TRUE)
Arguments
formula |
a formula of the form |
data |
a data frame containing the variables in the formula |
alpha |
the level of significance to assess the statistical difference. Default is set to alpha = 0.05. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
verbose |
a logical for printing output to R console. |
Value
A list with class "owt" containing the following components:
statistic |
the FTM test statistic. |
mean |
the mean of the FTM test statistic. |
variance |
the variance of the FTM test statistic. |
Z |
the standardized test statistic. |
p.value |
the p-value of the test. |
alpha |
the level of significance. |
method |
the character string "FTM test". |
data |
a data frame containing the variables in which NA values (if exist) are removed. |
formula |
a formula of the form |
Author(s)
Bulent Altunkaynak
References
Ferdhiane, R., Terpstra, J., Magel, R.C. (2008). A nonparametric test for the ordered alternative based on Kendall's correlation coefficient. Communications in Statistics-Simulation and Computation, 37:6, 1117-1128.
Jonckheere, A. R. (1954). A Distribution-Free k-Sample Test Against Ordered Alternatives. Biometrika, 41, 133-145.
Examples
library(npordtests)
## Data from Jonckheere (1954)
data(jdata)
FtmTest(Y~X,jdata)