Replication of glmnet and StataCorp’s lasso # Use Stata’s auto dataset with missing data dropped. The variable price1000 is used to illustrate scaling effects.
. sysuse auto, clear . drop if rep78==. . gen double price1000 = price/1000 Replication of glmnet # To load the data into R for comparison …