A path-following algorithm for L1 regularized generalized linear models and Cox proportional hazards model.