Displaying 2 results from an estimated 2 matches for "ccia".
Did you mean:
cca
2007 Mar 29
1
ansari.test.default: bug in call to uniroot?
...e to play with the examples. This
doesn't work for me in R version 2.4.1
R> ansari.test(rnorm(100), rnorm(100, 0, 2), conf.int = TRUE)
Error in uniroot(ab, srange, tol = 1e-04, zq = qnorm(alpha/2, lower = FALSE)) :
object "ab" not found
It looks like there's a small typo in ccia() inside
ansari.test.default() in which 'ab' is
passed to uniroot rather than 'ab2'. The definition of ccia below was
just copied
from https://svn.r-project.org/R/trunk/src/library/stats/R/ansari.test.R
ccia <- function(alpha) {
## Check if the statistic exceeds both quanti...
2002 Nov 03
1
Ansari-Bradley test (PR#2252)
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
>