rejpt.bt.lim:

Usage Arguments Examples

Usage

1

Arguments

p
r

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
##---- 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 (p, r) 
{
    c1 <- 2 * p
    iter <- 1
    crit <- 100
    eps <- 1e-05
    while ((crit > eps) & (iter < 100)) {
        c1.old <- c1
        fc <- erho.bt.lim(p, c1) - c1^2 * r
        fcp <- erho.bt.lim.p(p, c1) - 2 * c1 * r
        c1 <- c1 - fc/fcp
        if (c1 < 0) 
            c1 <- c1.old/2
        crit <- abs(fc)
        iter <- iter + 1
    }
    return(c(c1, pchisq(c1^2, p), log10(1 - pchisq(c1^2, p))))
  }

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