# Solved – Lasso/ridge regressions with binary factors

I have started working on analyses of SNP's in the human genome, and I want to apply as many models as I can. But I don't know of any analogues to LASSO / ridge regression (or maybe even elastic net) with binary / trinary factors.

P.S. About my model.

Let $$Y$$ be dependent variable and $$X_i$$ – independent. Then $$Y={0,1}$$ and $$X_i={0,1,2}$$. But I always can split variable $$X_i$$ in this way: $$X_i:=X_i'+X_i'$$ which both is i.i.d. and take values $${0,1}$$.

Contents

``    fit=glmnet(x,y,family="binomial") ``