plot.gcdclust: Plot coefficients from a "gcdclust" object

Description Usage Arguments Details References Examples

View source: R/plot.gcdclust.R

Description

Produces a coefficient profile plot of the coefficient paths for a fitted gcdclust object. This function is modified based on the plot function from the glmnet package.

Usage

1
2
## S3 method for class 'gcdclust'
plot(x, xvar = c("norm", "lambda"), color = FALSE, label = FALSE, ...)

Arguments

x

fitted gcdclust model

xvar

what is on the X-axis. "norm" plots against the L1-norm of the coefficients, "lambda" against the log-lambda sequence.

color

if TRUE, plot the curves with rainbow colors. FALSE is gray colors. Default is FALSE

label

if TRUE, label the curves with variable sequence numbers. Default is FALSE

...

other graphical parameters to plot

Details

A coefficient profile plot is produced.

References

HHSVM-CEN Yang, Y. and Zou, H. (2012), "An Efficient Algorithm for Computing The HHSVM and Its Generalizations," Journal of Computational and Graphical Statistics, 22, 396-415.

Friedman, J., Hastie, T., and Tibshirani, R. (2010), "Regularization paths for generalized linear models via coordinate descent," Journal of Statistical Software, 33, 1.
http://www.jstatsoft.org/v33/i01/

Examples

1
2
3
4
5
6
7
data(test)
x=test$x
y=test$y


m=gcdclust(x,y,KK=3,lambda2=5)
plot(m)

KarimOualkacha/HHSVM-ClusterNet documentation built on May 7, 2019, 12:28 p.m.