Elastic Net, R, Data Science, Editors Pick, Thoughts And Theory.
list, you can pass the link function family as a string. And if not, you’ll need to pass a family function. See the examples below: library(glmnet) # canonical exmaple - pass gaussian string fit <- glm(y ~ x, family = "gaussian") # non-canonical exmaple - pass quasi-poisson function fit <- glm(y ~