Escolar Documentos
Profissional Documentos
Cultura Documentos
html
Home
ISLR Package
Author Bios
Errata
Errata for the 1st Edition, since the 7th printing (June 2017) and not reflected in online version
Page 254. The glmnet package has been updated so two lines of code need to change. The line
ridge.pred=predict(ridge.mod,s=0,newx=x[test,],exact=T,x=x[train,],y=y[train])
predict(ridge.mod,s=0,exact=T,type="coefficients",x=x[train,],y=y[train])[1:20,]
Thanks to
Lenna Choi
1 of 1 4/30/2019, 11:49 AM