1 | mlrplot2(x, Y)
|
x |
|
Y |
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")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.