plot.DSA {DSA}R Documentation

A visual diagnostic tool for data-adaptive estimation with the DSA routine

Description

Plot the average cross-validated risks obtained from a call to the DSA routine.

Usage

plot.DSA(x, plot.compare = FALSE, ...)

Arguments

x an object of class 'DSA'.
plot.compare if TRUE, plots are overlaid to facilitate the comparison of average cross-validated risks for all sizes, interaction orders and dimension reduction levels considered.
... currently additional arguments are ignored.

Value

A list of plots. Currently model sizes are plotted against average cross-validated risks for each dimension reduction level considered separately for each interaction order if plot.compare=FALSE or on a single plot if plot.compare=TRUE.

Author(s)

James Bullard.

See Also

DSA.

Examples

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)

[Package DSA version 3.1.2 Index]