which
) are currently available: a
plot of estimated against observed values, a plot of residuals against
estimated values, and screeplots of the apparent RMSE, average bias
and maximum bias for MAT models of size $k$, where $k = 1,
\dots, n$. By default, the first three and ## S3 method for class 'mat':
plot(x,
which = c(1:3, 5),
weighted = FALSE,
k,
caption = c("Inferred vs Observed", "Residuals vs Fitted",
"Leave-one-out errors", "Average bias",
"Maximum bias"),
max.bias = TRUE,
n.bias = 10,
restrict = 20,
sub.caption = NULL,
main = "",
ask = prod(par("mfcol")) < length(which) &&
dev.interactive(),
...,
panel = if (add.smooth) panel.smooth else points,
add.smooth = getOption("add.smooth"))
"mat"
."mat"
object to plot if a
subset of the plots is required, specify a subset of the numbers
1:5
.k
is chosen automatically as the k
that achieves lowest RMSE.restrict
.NULL
,
as by default, a possibly shortened version of
deparse(x$call)
is used.caption
.TRUE
, the user is asked before
each plot, see par(ask=.)
.points
, panel.smooth
, can be chosen by
add.smooth = TRUE
.panel
above.plot.lm
and many of the conventions and defaults for that function are
replicated here.
sub.caption
- by default the function call - is shown as a
subtitle (under the x-axis title) on each plot when plots are on
separate pages, or as a subtitle in the outer margin (if any) when
there are multiple plots per page.mat
## continue the RLGH example from ?join
example(join)
## MAT
swap.mat <- mat(swapdiat, swappH, method = "SQchord")
swap.mat
summary(swap.mat)
## summary plot of MAT model
par(mfrow = c(2,2))
plot(swap.mat)
par(mfrow = c(1,1))
Run the code above in your browser using DataLab