depthcomsub:

Usage Arguments Examples

Usage

1
depthcomsub(x1, y1, x2, y2, est = tmean, fr = 1)

Arguments

x1
y1
x2
y2
est
fr

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
##---- 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 (x1, y1, x2, y2, est = tmean, fr = 1) 
{
    x1 = (x1 - median(x1))/mad(x1)
    x2 = (x2 - median(x2))/mad(x2)
    yh1 = runhat(x1, y1, est = tmean, fr = fr)
    yh2 = runhat(x2, y2, pts = x1, est = tmean, fr = fr)
    flag = is.na(yh2)
    res1 = y1 - yh1
    res2 = y1[!flag] - yh2[!flag]
    dep1 = resdepth(x1, res1)
    dep2 = resdepth(x1[!flag], res2)
    list(dep1 = dep1, dep2 = dep2)
  }

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