plotCVE: Cross Validation Error Plot for an "mp_cv" Class Object.

Description Usage Arguments Value Examples

Description

This function plots the cross validation error as a function of the tuning parameters. For penalties with 2 tuning parameters, a heat map will be plotted via the image() function

Usage

1
plotCVE(mp_cv, col.regions = vcols, key.lab = "CV Err", ...)

Arguments

mp_cv

A fitted 'mp_cv' class object returned by mpersonalized_cv function

col.regions

color scale. See image-methods

key.lab

label for colorkey

...

arguments to be passed to levelplot

Value

Nothing

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
set.seed(123)
sim_dat  = simulated_dataset(n = 200, problem = "meta-analysis")
Xlist = sim_dat$Xlist; Ylist = sim_dat$Ylist; Trtlist = sim_dat$Trtlist

# fit different rules with lasso penalty for this meta-analysis problem
mp_cvmod_diff = mpersonalized_cv(problem = "meta-analysis",
                                 Xlist = Xlist, Ylist = Ylist, Trtlist = Trtlist,
                                 penalty = "lasso", single_rule = FALSE)

plots = plotCVE(mp_cvmod_diff)
set.seed(NULL)

chenshengkuang/mpersonalized documentation built on May 28, 2019, 7:16 p.m.