iilasso (version 0.0.1)

plot_lasso: Plot a solution path

Description

Plot a solution path

Usage

plot_lasso(fit, ...)

Arguments

fit

IILasso model

...

parameters of matlines function

Examples

Run this code
# NOT RUN {
X <- matrix(c(1,2,3,5,4,7,6,8,9,10), nrow=5, ncol=2)
b <- matrix(c(-1,1), nrow=2, ncol=1)
e <- matrix(c(0,-0.1,0.1,-0.1,0.1), nrow=5, ncol=1)
y <- as.numeric(X %*% b + e)
fit <- lasso(X, y)
pr <- predict_lasso(fit, X)
plot_lasso(fit)
# }

Run the code above in your browser using DataCamp Workspace