how to use lassoglm without an intercept

5 visualizzazioni (ultimi 30 giorni)
purplecobra11
purplecobra11 il 9 Mag 2016
Risposto: Marius Marinescu il 5 Mag 2025
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 Commenti
Ghazaale Leylaz Mehrabadi
Ghazaale Leylaz Mehrabadi il 13 Gen 2020
I have the same question! Please let me know if you have found the answer!
Marius Marinescu
Marius Marinescu il 4 Mag 2025
I have the same question. I think it is not possible.

Accedi per commentare.

Risposte (1)

Marius Marinescu
Marius Marinescu il 5 Mag 2025
I made a function that is the same as lassoglm, except that does not consider the intercept. I attach it.

Categorie

Scopri di più su Graphics Object Programming in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by