mlrplot2:

Usage Arguments Examples

Usage

1
mlrplot2(x, Y)

Arguments

x
Y

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
32
##---- 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) 
{
    x <- as.matrix(x)
    out <- mbareg(x, Y)
    bhat <- out$coef
    FIT <- bhat[1] + x %*% bhat[-1]
    par(mfrow = c(2, 2))
    plot(FIT, Y)
    abline(0, 1)
    identify(FIT, Y)
    title("MBA Forward Response Plot")
    RES <- Y - FIT
    plot(FIT, RES)
    identify(FIT, RES)
    title("MBA Residual Plot")
    out <- mbalata(x, Y)
    bhat <- out$coef
    FIT <- bhat[1] + x %*% bhat[-1]
    plot(FIT, Y)
    abline(0, 1)
    identify(FIT, Y)
    title("MBALATA Forward Response Plot")
    RES <- Y - FIT
    plot(FIT, RES)
    identify(FIT, RES)
    title("MBALATA Residual Plot")
  }

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