Skip to main content
2 of 4
added 6 characters in body
hans-t
  • 569
  • 2
  • 11
  • 18

Predict Coefficients with glmnet()

ridge.fit1 <- glmnet(x,y, alpha = 0)  
  
ridge.fitt <- coef(glmnet(x, y, alpha = 0, lambda = 3))
ridge.pred <- predict(ridge.fit1, s = 3, type = 'coefficients')

What's the difference between ridge.fitt and ridge.pred?

hans-t
  • 569
  • 2
  • 11
  • 18