I have a model with 13 independent variables (all of them are significant and 2 of them are categorical variables) and 678 observations. I ran the ridge regression and lasso on the data set using glmnet package. Here is the output.

enter image description here

enter image description here

I was wondering how I can relate the variables to their number and what L1 norm mean. Thanks.

  • $\begingroup$ Can you clarify what you mean by "relate the variables to their number"? Each plot has thirteen series, corresponding to thirteen variables, presumably numbered in order of definition. What command did you run to create these plots? $\endgroup$
    – Emre
    Mar 11, 2016 at 21:51
  • $\begingroup$ I used fit.ridge=glmnet(x,y,alpha=0,standardize=TRUE) and plot(fit.ridge,xvar="norm",label=TRUE) for ridge and similar thing for lasso. I'm not sure if the first number is my first variable etc. Can I the variables' name in the graph instead of their number. Thanks. $\endgroup$
    – Amir
    Mar 11, 2016 at 22:40


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.