traceplot.logilasso {logilasso} | R Documentation |
Plots the trajectories.
Description
The trace of all components of beta is plotted against all lambdas which
were considered in the solution path. The function can be applied to an object of
class logilasso
. This object can be of various subclasses such as
cvlogilasso
, predlogilasso
or
predlogilassospez
. Possibly the solution path only consists of
one lambda, then the components of the corresponding beta are plotted.
Usage
traceplot(beta, ...)
Arguments
beta |
An object of class logilasso . |
... |
Additional arguments to the plot function. |
Examples
library(gRbase)
data(reinis)
fit <- logilasso(reinis,lambdainit=,lambdamin=0.1)
traceplot(fit)
fit2 <- logilasso(reinis,lambdainit=1,lambdamin=0.1,cvfold=3)
traceplot(fit2)
fit3 <- levelcv(reinis,lambdainit=1,lambdamin=0.1,to.which.int=3,cvfold=3)
traceplot(fit3)
traceplot(predict(fit3))
[Package
logilasso version 0.1.0
Index]