Re: [R] - help - LARS & LASSO based on glm

2009-03-16 Thread Max Kuhn
> how can I fix it so that the LARS predicts values between 0 and 1 ? I don't know, but you can use glmnet to accomplish the same thing. -- Max __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posti

[R] - help - LARS & LASSO based on glm

2009-03-16 Thread eitan lavi
Hello I'm trying to use LARS on a glm: log.1 = glm(Train.Data$TL~(.),Train.Data,family = binomial) LARS.1 = lars(model.matrix(log.1),Train.Data$TL,type = "lar",max.steps = ncol(model.matrix(log.1))-1) self.fit = predict.lars(LARS.1,model.matrix(log.1),type="fit",mode="step")$fit