runYhat:

Usage Arguments Examples

Usage

1
runYhat(x, y, pts = x, est = tmean, fr = 1, nmin = 1, xout = FALSE, outfun = outpro, ...)

Arguments

x
y
pts
est
fr
nmin
xout
outfun
...

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
##---- 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, y, pts = x, est = tmean, fr = 1, nmin = 1, xout = FALSE, 
    outfun = outpro, ...) 
{
    x = as.matrix(x)
    if (xout) {
        flag <- outfun(x, plotit = FALSE, ...)$keep
        x <- x[flag, ]
        y <- y[flag]
        x <- as.matrix(x)
    }
    if (ncol(x) == 1) {
        vals = runhat(x[, 1], y, pts = pts, est = est, fr = fr, 
            nmin = nmin, ...)
        nvals = 1
        for (i in 1:length(pts)) {
            nvals[i] <- length(y[near(x, pts[i], fr = fr)])
        }
    }
    if (ncol(x) > 1) {
        temp = rung3hat(x, y, pts = pts, est = est, fr = fr, 
            ...)
        vals = temp$rmd
        nvals = temp$nval
    }
    list(Y.hat = vals, nvals = nvals)
  }

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