~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to tests/analysis_plugins/RKTestStandard.ansari_bradley_exact_test.rkcommands.R

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2009-10-26 14:30:00 UTC
  • mfrom: (1.1.13 upstream) (6.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20091026143000-wzwt6cryjnwce23k
Tags: 0.5.2-1
* new upstream release
  closes: #551306 (added support for the new dynamic help system)
* Add "DM-Upload-Allowed: yes" in control
* bump standards version to 3.8.3 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
local({
 
2
## Prepare
 
3
require(exactRankTests)
 
4
 
 
5
names <- rk.get.description (test50x, test10y)
 
6
## Compute
 
7
result <- ansari.exact (test50x, test10y, alternative = "two.sided", exact=TRUE, conf.int = TRUE)
 
8
 
 
9
## Print result
 
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" ))
 
15
 
 
16
rk.results (list (
 
17
        'Variable Names'=names,
 
18
        'statistic'=result$statistic,
 
19
        'null.value'=result$null.value,
 
20
        p=result$p.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))
 
24
})
 
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")
 
26
.rk.make.hr()
 
27
local({
 
28
## Prepare
 
29
require(exactRankTests)
 
30
 
 
31
names <- rk.get.description (test50x, test50y)
 
32
## Compute
 
33
result <- ansari.exact (test50x, test50y, alternative = "less", conf.int = FALSE)
 
34
 
 
35
## Print result
 
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"))
 
40
 
 
41
rk.results (list (
 
42
        'Variable Names'=names,
 
43
        'statistic'=result$statistic,
 
44
        'null.value'=result$null.value,
 
45
        p=result$p.value))
 
46
})
 
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")
 
48
.rk.make.hr()