plot.DSA {DSA} | R Documentation |
Plot the average cross-validated risks obtained from a call to the DSA routine.
plot.DSA(x, plot.compare = FALSE, ...)
x |
an object of class 'DSA'. |
plot.compare |
if TRUE , all plots are overlaid on a single plot
facilitating the comparison of the average cross-validated risks for
all sizes and interaction orders considered. |
... |
currently additional arguments are ignored. |
A list of plots (default) or a single plot based on the value for plot.compare
. Currently model sizes are plotted against average
cross-validated risks separately for each
interaction order if plot.compare=FALSE
or on a
single plot if plot.compare=TRUE
.
James Bullard.
DSA
.
library(DSA) ## an example using the state census data. (gaussian) data(state) state.data <- as.data.frame(state.x77) colnames(state.data) <- unlist(lapply(strsplit(colnames(state.data), " "), function(x) paste(x, collapse = ""))) res <- DSA(Murder ~ 1, data = state.data, maxsize = 5, maxsumofpow = 2, maxorderint = 2) plot(res)