plot.logilasso {logilasso} | R Documentation |
Plot function for objects of class logilasso
,
predlogilasso
and predlogispez
.
## S3 method for class 'logilasso': plot(x, grenze = 0,...) ## S3 method for class 'predlogilasso': plot(x, grenze = 0, ...) ## S3 method for class 'predlogispez': plot(x, ...)
x |
An object of class logilasso , predlogilasso or
predlogispez . |
grenze |
Up to which fraction of the maximal absolute component of beta, the individual components are treated as zero. If 1, then all beta components are treated as zero, if 0, then all components which do not equal zero are treated as nonzeros. |
... |
Additional arguments to the plot function. |
For objects of class predlogispez
the trajectories of the
components of the beta vectors are plotted against the lambdas. For
objects of class predlogilasso
the corresponding undirected
graphical model (CIG) is plotted.
For objects of the class logilasso
, first the predict()
function is applied and the resulting object of either class
predlogispez
or predlogilasso
is plotted as described above.
library(gRbase) data(reinis) fit <- logilasso(reinis,lambdainit=1,lambdamin=0.1) plot(fit) fitcv <- logilasso(reinis,lambdainit=1,lambdamin=0.1,cvfold=3) plot(fitcv) levellogi <- levelcv(reinis,lambdainit=1,lambdamin=0.1,to.which.int=3,cvfold=3) plot(levellogi) pred <- predict(fit,lambda=0.3) plot(pred)