outms:

Usage Arguments Examples

Usage

1
outms(x, crit = 2, plotit = FALSE)

Arguments

x
crit
plotit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
##---- 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, crit = 2, plotit = FALSE) 
{
    x = elimna(x)
    x = as.matrix(x)
    if (ncol(x) == 1) {
        z = (x - mean(x))/sd(x)
        flag = abs(z) >= crit
        out.id = z[flag]
        n.out = sum(flag)
        nums = c(1:length(x))
        keep = nums[!flag]
    }
    if (ncol(x) > 1) 
        stop("Use function\tout with outfun=wmean.cov")
    list(n = length(x), n.out = n.out, out.value = x[flag], out.id = nums[flag], 
        keep = keep)
  }

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