Greetings!
I am trying to run the "cv.glmnet "function in R. It runs successfully when alpha=0.5 or 0. See below
cv.glmnet(x=x,y=f,family="poisson", alpha=0.5, offset=rep(log(poffset), length(f)))
cv.glmnet(x=x,y=f,family="poisson", alpha=0, offset=rep(log(poffset), length(f)))
However when I specify alpha =1
cv.glmnet(x=x,y=f,family="poisson", alpha=1, offset=rep(log(poffset), length(f)))
I get the following error message:
Error: Matrices must have same number of columns in .local(x, y, ...)
Any help on this ?
Thanks!