how to use lassoglm without an intercept

I'm trying to use lassoglm but setting the intercept term to 0. To do this with glmfit I set 'constant' to 'off' but I can't figure out how to do the same thing for lasso glm

3 Comments

I have the same question. Do you have an answer yet?
I have the same question! Please let me know if you have found the answer!
I have the same question. I think it is not possible.

Sign in to comment.

Answers (1)

I made a function that is the same as lassoglm, except that does not consider the intercept. I attach it.

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Tags

Asked:

on 9 May 2016

Answered:

on 5 May 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!