3
require(exactRankTests)
5
names <- rk.get.description (test50x, test10y)
7
result <- ansari.exact (test50x, test10y, alternative = "two.sided", exact=TRUE, conf.int = TRUE)
10
rk.header (result$method,
11
parameters=list ("Comparing", paste (names[1], "against", names[2]),
12
'H1', rk.describe.alternative (result),
13
"Compute exact p-value", "yes",
14
"Confidence Level", "0.95" ))
17
'Variable Names'=names,
18
'statistic'=result$statistic,
19
'null.value'=result$null.value,
21
'confidence interval percent'=(100 * attr(result$conf.int, "conf.level")),
22
'confidence interval of difference'=result$conf.int,
23
'estimate of the ratio of scales'=result$estimate))
25
.rk.rerun.plugin.link(plugin="rkward::ansari_bradley_exact_test", settings="alternative.string=two.sided\nconfint.state=TRUE\nconflevel.real=0.95\nexact.string=yes\nx.available=test50x\ny.available=test10y", label="Run again")
29
require(exactRankTests)
31
names <- rk.get.description (test50x, test50y)
33
result <- ansari.exact (test50x, test50y, alternative = "less", conf.int = FALSE)
36
rk.header (result$method,
37
parameters=list ("Comparing", paste (names[1], "against", names[2]),
38
'H1', rk.describe.alternative (result),
39
"Compute exact p-value", "automatic"))
42
'Variable Names'=names,
43
'statistic'=result$statistic,
44
'null.value'=result$null.value,
47
.rk.rerun.plugin.link(plugin="rkward::ansari_bradley_exact_test", settings="alternative.string=less\nconfint.state=FALSE\nexact.string=automatic\nx.available=test50x\ny.available=test50y", label="Run again")