Ansari-Bradley test (PR#2252)
wex00002@uconn.edu
wex00002@uconn.edu
Sun, 3 Nov 2002 23:38:21 +0100 (MET)
Full_Name: Wei Xu
Version: 1.5.1
OS: WindowsME
Submission from: (NULL) (63.215.238.92)
The P-value for a two.sided test is not consistent with the confidence
interval.
For example, P-value=0.1372, but the 95% CI doesn't include the H0 value(1).
> x
[1] 0.80 0.83 1.89 1.04 1.45 1.38 1.91 1.64 0.73 1.46
> y
[1] 1.15 0.88 0.90 0.74 1.21
> ansari.test(x,y,alternative="two.sided",conf.int=TRUE,conf.level=0.95)
Ansari-Bradley test
data: x and y
AB = 36, p-value = 0.1372
alternative hypothesis: true ratio of scales is not equal to 1
95 percent confidence interval:
1.081081 2.581081
sample estimates:
ratio of scales
1.972973
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._