StatQuest: Ridge, Lasso and Elastic-Net Regression in R. October 23, 2018 Here’s a link to the source code on the StatQuest GitHub.