Learn R Programming

glmaag (version 0.0.6)

plot.cv_glmaag: Cross validation plot

Description

plot cross validation performance paths

Usage

# S3 method for cv_glmaag
plot(x, col_count = 3, SE = T, ...)

Arguments

x

the cv_glmaag object

col_count

number of columns in the plots

SE

whether or not plot the standared error curves (when SE = TRUE)

...

Value

plot generated by the model

Examples

Run this code
# NOT RUN {
data(sampledata)
data(L0)
y <- sampledata$Y_Gau
x <- sampledata[, -(1:3)]
cvwhich <- sample(rep(0:4, length.out = length(y)))
mod <- cv_glmaag(y, x, L0, cvwhich = cvwhich)
gg <- plot(mod, SE = FALSE)
# }

Run the code above in your browser using DataLab