mgvfreg:

Usage Arguments Examples

Usage

1
mgvfreg(x, y, regfun = tsreg, outfun = outbox, plotit = TRUE)

Arguments

x
y
regfun
outfun
plotit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
##---- 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, regfun = tsreg, outfun = outbox, plotit = TRUE) 
{
    m <- cbind(x, y)
    m <- elimna(m)
    flag <- outmgvf(m, outfun = outfun, plotit, SEED = SEED)$out.id
    ivec <- rep(T, nrow(m))
    ivec[flag] <- F
    x <- as.matrix(x)
    temp <- regfun(x[ivec, ], y[ivec])
    coef <- temp$coef
    if (plotit && ncol(m) == 2) 
        abline(coef)
    residuals <- temp$residuals
    list(coef = coef, residuals = residuals)
  }

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