Skip to content
Prev 258677 / 398502 Next

Lasso with Categorical Variables

On Mon, May 02, 2011 at 05:22:57PM -0400, Clemontina Alexander wrote:
It's because, so far as the linear model is concerned, factors are a
convenience to help us handle the dummy variables. So, yes, it's the
correct thing to do.  It sounds to me as though you are after a
shrinkage device that will treat the factor as a whole.
It means that X1 should be recoded to be C, D, and the rest. 

Cheers

Andrew