anc2COV.CV:

Usage Arguments Examples

Usage

1
anc2COV.CV(n1, n2, iter = 1000, alpha = 0.05, FRAC = 0.5, SEED = TRUE, MC = FALSE, TPM = FALSE, tau = 0.05)

Arguments

n1
n2
iter
alpha
FRAC
SEED
MC
TPM
tau

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
##---- 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 (n1, n2, iter = 1000, alpha = 0.05, FRAC = 0.5, SEED = TRUE, 
    MC = FALSE, TPM = FALSE, tau = 0.05) 
{
    if (SEED) 
        set.seed(2)
    n = max(c(n1, n2))
    data = list()
    for (i in 1:iter) {
        x = rmul(n, p = 6)
        N = n - min(c(n1, n2))
        if (N > 0) 
            x[1:N, 1:3] = NA
        data[[i]] = x
    }
    if (MC) {
        library(parallel)
        res = mclapply(data, anc2COV.sub, FRAC = FRAC, TPM = TPM, 
            tau = tau)
    }
    if (!MC) 
        res = lapply(data, anc2COV.sub, FRAC = FRAC, TPM = TPM, 
            tau = tau)
    M = as.vector(list2mat(res))
    M = sort(M)
    ic = round(alpha * iter)
    crit = M[ic]
    list(crit.val = crit, M = M)
  }

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