plot.nnlasso {nnlasso} | R Documentation |
Plot of regularization path
Description
Produces a plot of entire regularization path from a 'nnlasso' object obtained using ‘nnlasso’ function.
Usage
## S3 method for class 'nnlasso'
plot(x,xvar=c("lambda","L1norm","fraction of norm"),...)
Arguments
x |
A ‘nnlasso’ object obtained using ‘nnlasso’ function. |
xvar |
What should be on x-axis? xvar="lambda" produces a plot of regularization path with respect to lambda, xvar="L1norm" produces a plot of regularization path with respect to L1 norm of coefficients and xvar="fraction of norm" produces a plot of regularization path with respect to fraction of norm of coefficients. Default is xvar="L1norm". |
... |
Optional graphical parameters to matplot() function |
Value
A plot of regularization path is produced.
Author(s)
Baidya Nath Mandal and Jun Ma
References
Mandal, B.N. and Ma, J. (2016). L1 regularized multiplicative iterative path algorithm for non-negative generalized linear models.
Examples
data(car)
attach(car)
x=as.matrix(car[,1:10])
g1=nnlasso(x,y,family="normal")
plot(g1)
plot(g1,xvar="lambda")
g1=nnlasso(x,y1,family="binomial")
plot(g1)
plot(g1,xvar="lambda")
detach(car)
[Package nnlasso version 0.3 Index]