cidmul:

Usage Arguments Examples

Usage

1
cidmul(x, alpha = 0.05, g = NULL, dp = NULL, pr = TRUE)

Arguments

x
alpha
g
dp
pr

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, alpha = 0.05, g = NULL, dp = NULL, pr = TRUE) 
{
    if (pr) 
        print("cidmulv2 might provide better power")
    if (!is.null(g)) {
        if (is.null(dp)) 
            stop("Specify a value for dp, the column containing the data")
        x = fac2list(x[, dp], x[, g])
    }
    if (is.matrix(x) || is.data.frame(x)) 
        x <- listm(x)
    if (!is.list(x)) 
        stop("Data must be stored in a matrix or in list mode.")
    J <- length(x)
    CC <- (J^2 - J)/2
    test <- matrix(NA, CC, 7)
    for (j in 1:J) {
        xx <- !is.na(x[[j]])
        val <- x[[j]]
        x[[j]] <- val[xx]
    }
    dimnames(test) <- list(NULL, c("Group", "Group", "d", "ci.lower", 
        "ci.upper", "p.hat", "p-value"))
    jcom <- 0
    crit <- smmcrit(200, CC)
    if (alpha != 0.05) 
        crit <- smmcrit01(200, CC)
    alpha <- 1 - pnorm(crit)
    n = matl(lapply(x, length))
    for (j in 1:J) {
        for (k in 1:J) {
            if (j < k) {
                temp <- cid(x[[j]], x[[k]], alpha, plotit = FALSE)
                temp2 <- cidv2(x[[j]], x[[k]], alpha, plotit = FALSE)
                jcom <- jcom + 1
                test[jcom, 1] <- j
                test[jcom, 2] <- k
                test[jcom, 3] <- temp$d
                test[jcom, 4] <- temp$cl
                test[jcom, 5] <- temp$cu
                test[jcom, 6] <- temp$phat
                test[jcom, 7] <- temp2$p.value
            }
        }
    }
    list(n = n, test = test)
  }

musto101/wilcox_R documentation built on May 23, 2019, 10:52 a.m.