plot.cpernet {SALES} | R Documentation |
Plot coefficients from a cpernet object
Description
Produces a coefficient profile plot of the coefficient paths for a fitted
cpernet object. This function is modified based on the plot
method in
the glmnet
package.
Usage
## S3 method for class 'cpernet'
plot(x, xvar = c("norm", "lambda"), color = FALSE, label = FALSE, ...)
Arguments
x |
fitted |
xvar |
what is on the x-axis. |
color |
if |
label |
if |
... |
other graphical parameters to plot. |
Details
Two coefficient profile plots are produced, one for the mean coefficients and the other for the scale coefficients.
Author(s)
Yuwen Gu and Hui Zou
Maintainer: Yuwen Gu <yuwen.gu@uconn.edu>
See Also
Examples
set.seed(1)
n <- 100
p <- 400
x <- matrix(rnorm(n * p), n, p)
y <- rnorm(n)
tau <- 0.30
pf <- abs(rnorm(p))
pf2 <- abs(rnorm(p))
w <- 2.0
lambda2 <- 1
m2 <- cpernet(y = y, x = x, w = w, tau = tau, eps = 1e-8,
pf.mean = pf, pf.scale = pf2, intercept = TRUE,
standardize = FALSE, lambda2 = lambda2)
plot(m2)
[Package SALES version 1.0.2 Index]