daviddalpiaz / appliedstats

:bar_chart: Methods of Applied Statistics Course Textbook Repository
https://book.stat420.org/
158 stars 171 forks source link

change maxit of glm from 50 to 75 #141

Closed chadyuu closed 2 years ago

chadyuu commented 2 years ago
fit_over = glm(type ~ capitalTotal * (.), data = spam_trn, family = binomial, maxit = 50)

still outputs

Warning: glm.fit: algorithm did not converge

While maxit = 70 outputs the same error, maxit=71 does not. So the threshold is 71.

I changed maxit from 50 to 75 as a nice round number.

I am unsure about the cause, but maybe some change in the dataset or the glm function.